Skip to content

Commit

Permalink
handle Error and Exception the same way
Browse files Browse the repository at this point in the history
  • Loading branch information
sclassen committed Feb 15, 2022
1 parent d403e3d commit 2b71332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/net/sourceforge/jnlp/JNLPFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ private boolean packIsSupportedByCurrentJvm() {
try {
final Class<?> c = getClass().getClassLoader().loadClass("java.util.jar.Pack200");
return c != null;
} catch (ClassNotFoundException e) {
} catch (Exception | Error e) {
return false;
}
}
Expand Down

0 comments on commit 2b71332

Please sign in to comment.