Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 367989

Summary: NPE in JavaEEProjectUtilities.isJEEComponent(line 497)
Product: [WebTools] WTP Java EE Tools Reporter: Rosendo Martinez <rosendo>
Component: jst.j2eeAssignee: Rosendo Martinez <rosendo>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: normal    
Priority: P3 CC: shr31223
Version: 3.2.5Flags: cbridgha: review+
Target Milestone: 3.2.5 P   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed R3_2_5_patches patch ccc: iplog+

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.