Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367800 - NPE in JavaEEProjectUtilities.isJEEComponent(line 497)
Summary: NPE in JavaEEProjectUtilities.isJEEComponent(line 497)
Status: RESOLVED FIXED
Alias: None
Product: WTP Java EE Tools
Classification: WebTools
Component: jst.j2ee (show other bugs)
Version: 3.3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3.2   Edit
Assignee: Rosendo Martinez CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-03 17:05 EST by Rosendo Martinez CLA
Modified: 2012-01-11 11:12 EST (History)
2 users (show)

See Also:
cbridgha: review+


Attachments
Proposed R3_3_maintenance patch (1.32 KB, patch)
2012-01-05 12:43 EST, Rosendo Martinez CLA
shr31223: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rosendo Martinez CLA 2012-01-03 17:05:35 EST
Build Identifier: 

NPE at JavaEEProjectUtilities.isJEEComponent. See the log trace:


[exec] !ENTRY org.eclipse.wst.validation 4 0 2011-10-06 03:45:28.520
     [exec] java.lang.NullPointerException
     [exec]     at org.eclipse.jst.j2ee.project.JavaEEProjectUtilities.isJEEComponent(JavaEEProjectUtilities.java:497)
     [exec]     at org.eclipse.jst.j2ee.project.JavaEEProjectUtilities.isLegacyJ2EEComponent(JavaEEProjectUtilities.java:661)
     [exec]     at org.eclipse.jst.j2ee.internal.classpathdep.ClasspathDependencyValidator.validateInJob(ClasspathDependencyValidator.java:90)
     [exec]     at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
     [exec]     at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

The use of ModuleCoreNature.isFlexibleProject() is suggested to avoid this NPE.

Reproducible: Always
Comment 1 Rosendo Martinez CLA 2012-01-05 12:43:46 EST
Created attachment 209091 [details]
Proposed R3_3_maintenance patch
Comment 2 Chuck Bridgham CLA 2012-01-05 17:05:21 EST
approved
Comment 3 Roberto Sanchez Herrera CLA 2012-01-11 11:11:59 EST
Code committed to R3_3_maintenance and HEAD for WTP 3.3.2 and 3.4. Resolving defect