diff --git a/public/java/src/org/broadinstitute/sting/gatk/CommandLineGATK.java b/public/java/src/org/broadinstitute/sting/gatk/CommandLineGATK.java index b8b961119..b4d337d8d 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/CommandLineGATK.java +++ b/public/java/src/org/broadinstitute/sting/gatk/CommandLineGATK.java @@ -106,7 +106,7 @@ public class CommandLineGATK extends CommandLineExecutable { private static void checkForTooManyOpenFilesProblem(String message) { // Special case the "Too many open files" error because it's a common User Error for which we know what to do - if ( message.indexOf("Too many open files") != -1 ) + if ( message != null && message.indexOf("Too many open files") != -1 ) exitSystemWithUserError(new UserException.TooManyOpenFiles()); }