diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-03 03:18:45 +0000 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-03 16:31:19 -0400 |
commit | d5fc02a42f5a7d8376d4ec8f31f62ce1daa5b167 (patch) | |
tree | 597a034e3f3f07673c56bc7f76b7276410feee44 /nailgun_launcher | |
parent | 49dd2ae144ccc23e33d5a109a9036e296a465e08 (diff) | |
download | cbt-d5fc02a42f5a7d8376d4ec8f31f62ce1daa5b167.tar.gz cbt-d5fc02a42f5a7d8376d4ec8f31f62ce1daa5b167.tar.bz2 cbt-d5fc02a42f5a7d8376d4ec8f31f62ce1daa5b167.zip |
fix handling of null exception messages
Diffstat (limited to 'nailgun_launcher')
-rw-r--r-- | nailgun_launcher/TrapSecurityManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nailgun_launcher/TrapSecurityManager.java b/nailgun_launcher/TrapSecurityManager.java index 1626787..48e152b 100644 --- a/nailgun_launcher/TrapSecurityManager.java +++ b/nailgun_launcher/TrapSecurityManager.java @@ -72,7 +72,7 @@ public class TrapSecurityManager extends ProxySecurityManager{ } public static boolean isTrappedExit( Throwable t ){ - return t instanceof RuntimeException && t.getMessage().startsWith(prefix); + return t instanceof RuntimeException && t.getMessage() != null && t.getMessage().startsWith(prefix); } public static int exitCode( Throwable t ){ |