Skip to content

Commit 915bee3

Browse files
committed
whoops, null check. You'd think I would have learned by now (#254)
1 parent 6ff3b66 commit 915bee3

File tree

1 file changed

+1
-1
lines changed
  • aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet

1 file changed

+1
-1
lines changed

aws-serverless-java-container-core/src/main/java/com/amazonaws/serverless/proxy/internal/servlet/AwsServletContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public int getEffectiveMinorVersion() {
144144
@Override
145145
@SuppressFBWarnings("PATH_TRAVERSAL_IN") // suppressing because we are using the getValidFilePath
146146
public String getMimeType(String s) {
147-
if (!s.contains(".")) {
147+
if (s == null || !s.contains(".")) {
148148
return null;
149149
}
150150
if (mimeTypes == null) {

0 commit comments

Comments
 (0)