Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357686 - NPE when multiple variables declared in a single statement
Summary: NPE when multiple variables declared in a single statement
Status: CLOSED DUPLICATE of bug 359371
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-14 16:39 EDT by broy2 CLA
Modified: 2017-02-23 14:14 EST (History)
1 user (show)

See Also:


Attachments

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