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.

Bug 60383

Summary: A NPE is thrown when toggling a BP, while having different file focused in Explorer
Product: debugger Reporter: Max Sauer <msauer>
Component: AntAssignee: Jan Jancura <jjancura>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: exception

Description Max Sauer 2005-06-22 13:06:58 UTC
Toggle BP action should be probably disabled when a file which is NOT opened in
the editor is selected in Exporer. User can invoke this action then, which leads
to NPE.

Steps to reproduce this:
-------------------------
1)Have a project with at least two java files opened.
2)Open one of the files in the editor
3)Select the second one in Exporer window, Project Tab (via left mouse button)
4)Press "Ctrl+F8" or invoke "Toggle BP" action from the "Run" menu.

NB4.2dev, 200506211800
Tested on Windows XP x86 && Solaris Sparc
Comment 1 Max Sauer 2005-06-22 13:07:31 UTC
Created attachment 22848 [details]
exception
Comment 2 Martin Roskanin 2005-06-27 07:56:34 UTC
It looks like ant or debugger problem, reassigning.

java.lang.NullPointerException
	at
org.netbeans.modules.ant.debugger.breakpoints.AntBreakpointActionProvider.doAction(AntBreakpointActionProvider.java:56)
	at org.netbeans.api.debugger.ActionsManager.doAction(ActionsManager.java:147)
	at
org.netbeans.modules.debugger.ui.actions.DebuggerAction.actionPerformed(DebuggerAction.java:45)
Comment 3 Martin Entlicher 2005-10-31 17:48:24 UTC
The same cause as issue #60607.

*** This issue has been marked as a duplicate of 60607 ***
Comment 4 Max Sauer 2005-11-02 08:50:12 UTC
Ok, verified diplicate.