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

Bug 356075

Summary: NPE when generating a delegate passed to the Widget fadeOut function
Product: z_Archived Reporter: Brian Svihovec <svihovec>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: pharmon
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Brian Svihovec CLA 2011-08-29 09:37:17 EDT
Create a file named P5 and add the source below.  

When the part is being generated, the following exception is thrown:

Caused by: java.lang.RuntimeException: java.lang.NullPointerException
	at org.eclipse.edt.mof.egl.impl.QualifiedFunctionInvocationImpl.getTarget(QualifiedFunctionInvocationImpl.java:51)
	at org.eclipse.edt.mof.egl.impl.QualifiedFunctionInvocationImpl.getTarget(QualifiedFunctionInvocationImpl.java:1)
	at org.eclipse.edt.gen.ReorganizeCode.processInvocationConstantParameters(ReorganizeCode.java:346)
	at org.eclipse.edt.gen.ReorganizeCode.processInvocation(ReorganizeCode.java:354)
	at org.eclipse.edt.gen.ReorganizeCode.visit(ReorganizeCode.java:330)
	... 80 more
Caused by: java.lang.NullPointerException
	at org.eclipse.edt.mof.egl.impl.QualifiedFunctionInvocationImpl.resolveFunction(QualifiedFunctionInvocationImpl.java:110)
	at org.eclipse.edt.mof.egl.impl.QualifiedFunctionInvocationImpl.getTarget(QualifiedFunctionInvocationImpl.java:49)
	... 84 more

Source:

Handler P5 type RUIWidget {}
	
	function main() 
		fadeOut(300, setInvisible);
	end
	
	function setInvisible()
	end
	
end
Comment 1 Paul Harmon CLA 2011-09-09 14:26:10 EDT
I have updated the following classes to support passing functions as function/constructor arguments:

QualifiedFunctionInvocationImpl
IRUtils
TypeUtils
Comment 2 Lisa Lasher CLA 2011-11-09 14:17:03 EST
This defect was fixed at least 2 months ago, so I am closing.