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 48606 - [40cat] NPE on goto source with generated code
Summary: [40cat] NPE on goto source with generated code
Status: RESOLVED DUPLICATE of bug 48352
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-07 16:22 UTC by jasondonmoyer
Modified: 2007-11-05 13:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jasondonmoyer 2004-09-07 16:22:41 UTC
[ BUILD # : 200408271257 ]
[ JDK VERSION : J2SE 1.4.2_05 ]

I get the following NPE when using Goto source (from the right click menu) when trying to goto the source of a code generated file.  This occurs even if the file exists at the time of selecting "goto source" and at the time of the last classpath scanning.  The only commonality between the files that "goto source" does not work for in my project is the fact that they're code generated and reside in the same packages.

java.lang.NullPointerException
	at org.netbeans.modules.javacore.JMManager.getFileObject(JMManager.java:440)
	at org.netbeans.modules.javacore.JMManager.setClassPath(JMManager.java:241)
	at org.netbeans.modules.editor.java.JMIUtils.openElement(JMIUtils.java:553)
	at org.netbeans.modules.editor.java.NbJavaJMISyntaxSupport.openSource(NbJavaJMISyntaxSupport.java:501)
	at org.netbeans.modules.editor.java.JavaKit$JavaJMIGotoSourceAction.openSource(JavaKit.java:423)
	at org.netbeans.modules.editor.java.JavaKit$JavaGotoSourceAction.actionPerformed(JavaKit.java:365)
	at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:169)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 Dusan Balek 2004-09-07 16:32:40 UTC
It should be already fixed in [maintrunk].

*** This issue has been marked as a duplicate of 48352 ***
Comment 2 Dusan Balek 2004-09-07 16:40:47 UTC
OOPS - I have typed a wrong issue number.
This issue is a duplicate of issue #48332.