Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367989 - 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.2.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.5 P   Edit
Assignee: Rosendo Martinez CLA
QA Contact: Chuck Bridgham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-05 17:11 EST by Rosendo Martinez CLA
Modified: 2012-02-22 13:03 EST (History)
1 user (show)

See Also:
cbridgha: review+


Attachments
Proposed R3_2_5_patches patch (1.33 KB, patch)
2012-01-05 17:18 EST, Rosendo Martinez CLA
ccc: 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-05 17:11:37 EST
Build Identifier: 

Bug to backport fix to WTP 3.2.5P

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 17:18:57 EST
Created attachment 209108 [details]
Proposed R3_2_5_patches patch
Comment 2 Chuck Bridgham CLA 2012-01-11 09:11:10 EST
approved
Comment 3 Roberto Sanchez Herrera CLA 2012-01-20 15:16:40 EST
Code committed and released to R3_2_5_patches. Resolving bug.