Prevent NPE in threads command
@@ -239,6 +239,7 @@ public class ThreadsAction implements Action {
public boolean isInteresting() {
int nb = 0;
+ if (info != null && info.getStackTrace() != null) {
StackTraceElement[] stacktrace = info.getStackTrace();
for (StackTraceElement ste : stacktrace) {
boolean interestingLine = true;
@@ -252,6 +253,7 @@ public class ThreadsAction implements Action {
nb++;
}
}
+ }
return nb >= threshold;
}
