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

Bug 352454

Summary: NPE in CompilationUnitScope#connectTypeHierarchy
Product: [WebTools] JSDT Reporter: Ian Tewksbury <itewksbu>
Component: GeneralAssignee: Ian Tewksbury <itewksbu>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: 3.2.5   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Fix Patch none

Description Ian Tewksbury CLA 2011-07-19 09:17:11 EDT
If I type out a JS file that looks like this:
var ian = function() {
	return 42;
};

chris = function() {
	return "chris";
}

If after typing '"chris";' I move my cursor down a line I get a NPE in CompilationUnitScope#connectTypeHierarchy.
Comment 1 Ian Tewksbury CLA 2011-07-19 09:18:14 EDT
Created attachment 199900 [details]
Fix Patch

Guards against NPE
Comment 2 Chris Jaun CLA 2011-07-19 14:46:33 EDT
The fix patch just covers up the problem, does not solve it. Marking as duplicate.

*** This bug has been marked as a duplicate of bug 350276 ***