Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355536 - NPE during generation of int1 == int2 for program or library variables
Summary: NPE during generation of int1 == int2 for program or library variables
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-08-23 12:40 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:15 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 Kathy Carroll CLA 2011-08-23 12:40:53 EDT
library driver {}

	int1, int2 int = 77;
	
	function main()
		int3, int4 int = 33;
		test boolean = (int3 == int4);
		
		test = (int2 == int2);
	end
	
end

Multiple markers at this line
	- IWN.JavaGen.9999.e 13/187 Stack Trace: java.lang.NullPointerException
	- IWN.JavaGen.9998.e 13/187 Exception occurred: 
	 java.lang.NullPointerException

Multiple markers at this line
	- IWN.JavascriptGen.9999.e 13/187 Stack Trace: java.lang.NullPointerException
	- IWN.JavascriptGen.9998.e 13/187 Exception occurred: 
	 java.lang.NullPointerException
Comment 1 Kathy Carroll CLA 2011-08-23 12:47:08 EDT
variable declaration makes a difference.

This fails

 int1, int2 int = 77;

this works
   
  int1 int = 77;
  int2 int = 77;
Comment 2 Jeff Douglas CLA 2011-10-01 15:00:48 EDT

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