Skip to content

Commit c3aaa87

Browse files
committed
8361955: [GCC static analyzer] libjdwp/threadControl.c threadControl_setPendingInterrupt error: dereference of NULL 'node'
Reviewed-by: dholmes, sspitsyn, lmesnik
1 parent 58270b7 commit c3aaa87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/jdk.jdwp.agent/share/native/libjdwp/threadControl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,8 +2317,9 @@ threadControl_setPendingInterrupt(jthread thread)
23172317
debugMonitorEnter(threadLock);
23182318

23192319
node = findRunningThread(thread);
2320-
JDI_ASSERT(node != NULL);
2321-
node->pendingInterrupt = JNI_TRUE;
2320+
if (node != NULL) {
2321+
node->pendingInterrupt = JNI_TRUE;
2322+
}
23222323

23232324
debugMonitorExit(threadLock);
23242325
}

0 commit comments

Comments
 (0)