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 85373 - NPE while right-clicking on namespace in SV
Summary: NPE while right-clicking on namespace in SV
Status: VERIFIED DUPLICATE of bug 85330
Alias: None
Product: xml
Classification: Unclassified
Component: Schema Tools (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Nam Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-20 19:15 UTC by Samaresh Panda
Modified: 2006-09-28 00:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test application (237.80 KB, application/x-compressed)
2006-09-20 19:16 UTC, Samaresh Panda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samaresh Panda 2006-09-20 19:15:48 UTC
Use the attached testApp application:
- I restarted the IDE
- There was one empty schema file open.
- In SV, I right clicked on the namespace and got this:

java.lang.NullPointerException
	at
org.netbeans.modules.xml.refactoring.RefactorRequest.getModel(RefactorRequest.java:109)
	at
org.netbeans.modules.xml.refactoring.actions.SafelyRenameAction.enable(SafelyRenameAction.java:104)
	at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:176)
	at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:787)
	at org.openide.awt.Actions.connect(Actions.java:137)
	at org.openide.awt.Actions.connect(Actions.java:122)
	at org.openide.awt.Actions$MenuItem.<init>(Actions.java:1105)
	at
org.netbeans.modules.openide.awt.DefaultAWTBridge.createPopupPresenter(DefaultAWTBridge.java:58)
	at
org.openide.util.actions.CallableSystemAction.getPopupPresenter(CallableSystemAction.java:69)
	at
org.netbeans.modules.xml.refactoring.actions.RefactorAction$LazyMenu.getPopupMenu(RefactorAction.java:113)
	at javax.swing.plaf.basic.BasicMenuUI$Handler.mouseEntered(BasicMenuUI.java:498)
	at
javax.swing.plaf.basic.BasicMenuUI$MouseInputHandler.mouseEntered(BasicMenuUI.java:359)
Comment 1 Samaresh Panda 2006-09-20 19:16:21 UTC
Created attachment 34267 [details]
test application
Comment 2 Samaresh Panda 2006-09-20 19:18:10 UTC
Just create a new schema, right click on namespace node and you see this exception.
Comment 3 bhate 2006-09-20 19:20:50 UTC
dup of 85330

*** This issue has been marked as a duplicate of 85330 ***
Comment 4 Samaresh Panda 2006-09-28 00:52:43 UTC
Verified.