GH-639 Fix NPE for when using Supplier with AWS API Gateway
Resolves #639
This commit is contained in:
@@ -202,7 +202,7 @@ final class AWSLambdaUtils {
|
||||
}
|
||||
|
||||
private static boolean isTypeAnApiGatewayRequest(Type type) {
|
||||
return isAPIGatewayProxyRequestEventPresent()
|
||||
return type != null && isAPIGatewayProxyRequestEventPresent()
|
||||
? type.getTypeName().endsWith(APIGatewayProxyRequestEvent.class.getSimpleName())
|
||||
: false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user