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 47732 - [freeform] [40cat] NPE when invoking go to source on class for which no source is available
Summary: [freeform] [40cat] NPE when invoking go to source on class for which no sourc...
Status: CLOSED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Radko Najman
URL:
Keywords:
Depends on:
Blocks: 42682
  Show dependency tree
 
Reported: 2004-08-23 19:25 UTC by jasondonmoyer
Modified: 2006-03-24 09:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
my log file (191.01 KB, text/plain)
2004-08-23 19:28 UTC, jasondonmoyer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jasondonmoyer 2004-08-23 19:25:44 UTC
[ JDK VERSION : J2SE 1.4.2_05 ]

I get the following error when attempting to use go to source on a class declaration for which no source is available:

java.lang.NullPointerException
	at org.openide.filesystems.FileUtil.isParentOf(FileUtil.java:837)
	at org.netbeans.modules.ant.freeform.WebModules$FFWebModule.contais(WebModules.java:234)
	at org.netbeans.modules.ant.freeform.WebModules.findClassPath(WebModules.java:89)
	at org.netbeans.modules.ant.freeform.Classpaths.findClassPath(Classpaths.java:145)
	at org.netbeans.modules.java.project.ProjectClassPathProvider.findClassPath(ProjectClassPathProvider.java:36)
	at org.netbeans.api.java.classpath.ClassPath.getClassPath(ClassPath.java:396)
	at org.netbeans.modules.javacore.JMManager$CPList.<init>(JMManager.java:250)
	at org.netbeans.modules.javacore.JMManager.setClassPath(JMManager.java:277)
	at org.netbeans.modules.javacore.JMManager.setClassPath(JMManager.java:270)
	at org.netbeans.modules.javacore.JMManager.setClassPath(JMManager.java:237)
	at org.netbeans.modules.editor.java.JMIUtils.openElement(JMIUtils.java:550)
	at org.netbeans.modules.editor.java.NbJavaJMISyntaxSupport.openSource(NbJavaJMISyntaxSupport.java:503)
	at org.netbeans.modules.editor.java.JavaKit$JavaJMIGotoSourceAction.openSource(JavaKit.java:414)
	at org.netbeans.modules.editor.java.JavaKit$JavaGotoSourceAction.actionPerformed(JavaKit.java:356)
	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 jasondonmoyer 2004-08-23 19:28:33 UTC
Created attachment 17047 [details]
my log file
Comment 2 Radko Najman 2004-09-14 13:58:12 UTC
Cannot reproduce.
I always get a message "Source <class> not found" if the source code
is not available. Try to reproduce it with the latest build, please,
and if it still occurs, feel free to reopen.
Comment 3 jasondonmoyer 2004-09-14 14:47:28 UTC
I cannot reproduce in latest q-build with the same project that was
failing initially