Bug 164091 - [model] Possible NullPointerException in JavaProjectElementInfo.
Summary: [model] Possible NullPointerException in JavaProjectElementInfo.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M4   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 164090 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-10 06:42 EST by Roman Arkhangelskiy CLA
Modified: 2006-12-12 05:19 EST (History)
0 users

See Also:


Attachments
flow path (206.67 KB, image/jpeg)
2006-11-10 06:44 EST, Roman Arkhangelskiy CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Arkhangelskiy CLA 2006-11-10 06:42:23 EST
I have been running Jtest's BugDetective feature on Eclipse source code (build
of 29.10.2006) and it reported a possible NullPointerException to be thrown at line 266 of org.eclipse.jdt.internal.core.JavaProjectElementInfo.

There is a call to the method 'isClasspathEntryOrOutputLocation(..)' of this class made from line 133, and in fact the variable 'projectOutput' which is passed into this method may not have been initialized because of the exception which might had been thrown at line 105.

The attached screenshot from BugDetective will help to understand the exact flow which may lead to the exception.

Please let me know if this is a real problem or BugDetective is mistaken.

Thank you!
Comment 1 Roman Arkhangelskiy CLA 2006-11-10 06:44:07 EST
Created attachment 53612 [details]
flow path
Comment 2 Roman Arkhangelskiy CLA 2006-11-10 06:51:28 EST
*** Bug 164090 has been marked as a duplicate of this bug. ***
Comment 3 Frederic Fusier CLA 2006-11-10 12:05:44 EST
Released for 3.3 M4 in HEAD stream.
Comment 4 David Audel CLA 2006-12-12 05:19:40 EST
Verified for 3.3M4 with I20061212-0010.