Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356075 - NPE when generating a delegate passed to the Widget fadeOut function
Summary: NPE when generating a delegate passed to the Widget fadeOut function
Status: CLOSED FIXED
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-29 09:37 EDT by Brian Svihovec CLA
Modified: 2017-02-23 14:20 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 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.