Community
Participate
Working Groups
This can happen due to a race condition when a launch is added to the launch manager but has not yet started connecting. Unhandled exception in TCF event dispatch java.lang.NullPointerException at org.eclipse.tm.internal.tcf.cdt.ui.TCFBreakpointStatusListener$BreakpointListener.<init>(TCFBreakpointStatusListener.java:55) at org.eclipse.tm.internal.tcf.cdt.ui.TCFBreakpointStatusListener$1.onConnected(TCFBreakpointStatusListener.java:193) at org.eclipse.tm.internal.tcf.cdt.ui.TCFBreakpointStatusListener.<init>(TCFBreakpointStatusListener.java:215) at org.eclipse.tm.internal.tcf.cdt.ui.Activator$1.run(Activator.java:38) at org.eclipse.tm.tcf.EventQueue.run(EventQueue.java:99) at java.lang.Thread.run(Unknown Source)
The stack trace in comment 0 is from a modified file. Here is the stack trace for the original file. java.lang.NullPointerException at org.eclipse.tm.internal.tcf.cdt.ui.TCFBreakpointStatusListener$BreakpointListener.<init>(TCFBreakpointStatusListener.java:46) at org.eclipse.tm.internal.tcf.cdt.ui.TCFBreakpointStatusListener$1.onConnected(TCFBreakpointStatusListener.java:129) at org.eclipse.tm.internal.tcf.cdt.ui.TCFBreakpointStatusListener.<init>(TCFBreakpointStatusListener.java:151) at org.eclipse.tm.internal.tcf.cdt.ui.Activator$1.run(Activator.java:38) at org.eclipse.tm.tcf.EventQueue.run(EventQueue.java:99) at java.lang.Thread.run(Unknown Source)
Created attachment 190040 [details] Proposed patch This adds another check before attaching the breakpoint listener to the launch.
Committed. Thanks!