This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When I try to start the IDE or try run debugger, I get the followign exception: Thu Apr 12 06:14:51 CST 2001java.lang.NullPointerException: null Exception occurred in Request Processor java.lang.NullPointerException at org.netbeans.modules.debugger.CoreBreakpoint$Event.access$1 (CoreBreakpoint.java) at org.netbeans.modules.debugger.CoreBreakpoint.setEvent (CoreBreakpoint.java:163) at org.netbeans.modules.debugger.support.BreakpointSupport.setEvent (BreakpointSupport.java:171) at org.netbeans.modules.debugger.support.BreakpointSupport.setLine (BreakpointSupport.java:286) at org.netbeans.modules.debugger.support.DebuggerSupport.createBreakpoint (DebuggerSupport.java:212) at org.netbeans.modules.java.JavaEditor$15.performAction (JavaEditor.java:1014) at org.openide.util.actions.CallbackSystemAction.performAction (CallbackSystemAction.java:78) at org.openide.util.actions.CallableSystemAction.actionPerformed (CallableSystemAction.java:66) at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:67) at org.openide.util.Task.run(Task.java:124) at org.openide.util.RequestProcessor$ProcessorThread.run (RequestProcessor.java:562) org.openide.util.RequestProcessor$Holder(task org.netbeans.core.ModuleActions$1@6a29a7 [-41360, 1]) at org.openide.util.RequestProcessor$Task.createHolder (RequestProcessor.java:275) at org.openide.util.RequestProcessor.post(RequestProcessor.java:99) at org.openide.util.RequestProcessor.post(RequestProcessor.java:72) at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:65) at org.openide.awt.Actions$ButtonBridge.actionPerformed (Actions.java:295) at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java:1450) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed (AbstractButton.java:1504) at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:378) at javax.swing.DefaultButtonModel.setPressed (DefaultButtonModel.java:250) at javax.swing.AbstractButton.doClick(AbstractButton.java:279) [catch] at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased (BasicMenuItemUI.java:886) at java.awt.Component.processMouseEvent(Component.java:3715) at java.awt.Component.processEvent(Component.java:3544) at java.awt.Container.processEvent(Container.java:1164) at java.awt.Component.dispatchEventImpl(Component.java:2593) at java.awt.Container.dispatchEventImpl(Container.java:1213) at java.awt.Component.dispatchEvent(Component.java:2497) at java.awt.LightweightDispatcher.retargetMouseEvent (Container.java:2451) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125) at java.awt.Container.dispatchEventImpl(Container.java:1200) at java.awt.Window.dispatchEventImpl(Window.java:914) at java.awt.Component.dispatchEvent(Component.java:2497) at java.awt.EventQueue.dispatchEvent(EventQueue.java:339) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:131) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:98) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
The exception has never occured during long testing period of the debugger module. But here is an investigation result: The exception may be thrown e.g. after call to BreakpointSupport.setEvent(null), that may happen when method CoreBreakpoint.createEvent(Debugger, String) returns null. The method 'CoreBreakpoint.createEvent(Debugger, String)' should be changed so that it throws/displays exception when it reaches a state that leads to returning null. Or at least it should be documented that it can return null and what does it mean and the returned value should be checked against null before it is used. This change will not be integrated into release 3.2.
Steps to reproduce: 1. Uninstall modules 'JPDA Debugger' and 'Tools Debugger'. But let 'Debugger Core' installed! 2. Go to Source Editor and toggle a breakpoint. An exception is thrown.
Target milestone -> 3.3
Unified "owner" addresses.
Created attachment 1913 [details] exception window
It seems that this bug is a special case of the more general issue 11570. *** This issue has been marked as a duplicate of 11570 ***
Resolution Duplicate -> Status Closed.