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 - A NPE is thrown when toggling a BP, while having different file focused in Explorer
Summary: A NPE is thrown when toggling a BP, while having different file focused in Ex...
Status: VERIFIED DUPLICATE of bug 60607
Alias: None
Product: debugger
Classification: Unclassified
Component: Ant (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-22 13:06 UTC by Max Sauer
Modified: 2005-11-02 08:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (2.11 KB, text/plain)
2005-06-22 13:07 UTC, Max Sauer
Details

Note You need to log in before you can comment on or make changes to this bug.
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.