Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352454 - NPE in CompilationUnitScope#connectTypeHierarchy
Summary: NPE in CompilationUnitScope#connectTypeHierarchy
Status: CLOSED DUPLICATE of bug 350276
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.2.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ian Tewksbury CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-19 09:17 EDT by Ian Tewksbury CLA
Modified: 2011-11-16 15:40 EST (History)
1 user (show)

See Also:


Attachments
Fix Patch (1.87 KB, patch)
2011-07-19 09:18 EDT, Ian Tewksbury CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 ***