Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360469 - NPE testing null decimal? variable == null
Summary: NPE testing null decimal? variable == null
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-10 13:16 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:19 EST (History)
2 users (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-10-10 13:16:46 EDT
program driver type BasicProgram {}
	
	
	function main()
		// works in JS; NPE in java
		tester decimal?;
		if (tester == null)
			syslib.writestdout("good");
		else
			syslib.writestdout("bad");
		end
	end
	
end
Comment 1 Jeff Douglas CLA 2011-10-18 14:49:04 EDT
fixed
Comment 2 Kathy Carroll CLA 2011-10-25 12:00:04 EDT
verified with build 201110241434 & closed