Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329821 - NPE in J2EEModuleVirtualComponent.getReferences
Summary: NPE in J2EEModuleVirtualComponent.getReferences
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows Server 2003
: P3 normal (vote)
Target Milestone: 3.2.3   Edit
Assignee: Jason Sholl CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
: 332425 332551 332698 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-09 10:54 EST by Jason Sholl CLA
Modified: 2010-12-15 20:10 EST (History)
4 users (show)

See Also:
cbridgha: review+


Attachments
patch (2.08 KB, patch)
2010-11-09 10:56 EST, Jason Sholl CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Sholl CLA 2010-11-09 10:54:58 EST
!ENTRY org.eclipse.jst.j2ee 4 2 2010-11-02 14:54:04.250
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jst.j2ee".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jst.j2ee.componentcore.J2EEModuleVirtualComponent.getReferences(J2EEModuleVirtualComponent.java:176)
	at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesContainer.computeReferences(WebAppLibrariesContainer.java:100)
	at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjectContainer.computeClasspathEntries(FlexibleProjectContainer.java:183)
	at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesContainer.computeClasspathEntries(WebAppLibrariesContainer.java:119)
	at org.eclipse.jst.common.jdt.internal.classpath.FlexibleProjectContainer.<init>(FlexibleProjectContainer.java:120)
	at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesContainer.<init>(WebAppLibrariesContainer.java:58)
	at org.eclipse.jst.j2ee.internal.web.classpath.WebAppLibrariesContainer.refresh(WebAppLibrariesContainer.java:88)
	at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob.processModules(J2EEComponentClasspathUpdater.java:294)
	at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob.access$4(J2EEComponentClasspathUpdater.java:286)
	at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob$1.run(J2EEComponentClasspathUpdater.java:327)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater$ModuleUpdateJob.run(J2EEComponentClasspathUpdater.java:312)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Jason Sholl CLA 2010-11-09 10:56:55 EST
Created attachment 182729 [details]
patch
Comment 2 Jason Sholl CLA 2010-11-09 11:03:40 EST
code checked into 32M and HEAD for WTP 3.2.3 and 3.3
Comment 3 Chuck Bridgham CLA 2010-11-17 09:53:33 EST
approve
Comment 4 Carl Anderson CLA 2010-12-13 08:36:27 EST
*** Bug 332425 has been marked as a duplicate of this bug. ***
Comment 5 Carl Anderson CLA 2010-12-15 11:27:46 EST
*** Bug 332551 has been marked as a duplicate of this bug. ***
Comment 6 Nitin Dahyabhai CLA 2010-12-15 20:10:32 EST
*** Bug 332698 has been marked as a duplicate of this bug. ***