From c8bf7d209924934eb8056e35860836e493747092 Mon Sep 17 00:00:00 2001 From: Mark DePristo Date: Wed, 23 Nov 2011 10:47:21 -0500 Subject: [PATCH] Check for null comment --- .../java/src/org/broadinstitute/sting/gatk/CommandLineGATK.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }