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

Bug 357686

Summary: NPE when multiple variables declared in a single statement
Product: z_Archived Reporter: broy2
Component: EDTAssignee: Project Inbox <edt.compiler-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jeffdouglas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description broy2 CLA 2011-09-14 16:39:35 EDT
Build Identifier: 20120914

The following program gives a NPE on Save:

program NPE type BasicProgram {}
	result, var1 STRING;		// This declaration causes NPE
//	result STRING;			// Declaring like this works
//	var1 STRING;
	function main()
		var1 = "Sun";
	end	
end

IWN.JavascriptGen.9998.e 11/143 Exception occurred: java.lang.NullPointerException	

But if I declare the 2 variables separately, there is no NPE on Save.


Reproducible: Always
Comment 1 Jeff Douglas CLA 2011-10-01 15:05:25 EDT

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