Skip to content

Commit 61fbccf

Browse files
committed
Do not catch null pointer exception
1 parent a09587b commit 61fbccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/kohsuke/github/extras/okhttp3/ObsoleteUrlFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ static String getSystemProperty(String key, @Nullable String defaultValue) {
320320
String value;
321321
try {
322322
value = System.getProperty(key);
323-
} catch (SecurityException | IllegalArgumentException | NullPointerException ex) {
323+
} catch (SecurityException | IllegalArgumentException ex) {
324324
return defaultValue;
325325
}
326326
return value != null ? value : defaultValue;

0 commit comments

Comments
 (0)