Skip to content

Commit

Permalink
CONJ-864 - includeThreadDumpInDeadlockExceptions always includes the …
Browse files Browse the repository at this point in the history
…thread dump, even when it is not a deadlock exception
  • Loading branch information
rusher committed May 12, 2021
1 parent c4c3b81 commit 1acaffc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ private static String buildMsgText(
msg.append("\ndeadlock information: ").append(deadLockException);
}

if (options != null && options.includeThreadDumpInDeadlockExceptions) {
if (options != null
&& deadLockException != null
&& options.includeThreadDumpInDeadlockExceptions) {
if (threadName != null) {
msg.append("\nthread name: ").append(threadName);
}
Expand Down

0 comments on commit 1acaffc

Please sign in to comment.