| Summary: | NPE Thrown when generating a reference to a function in a delegate array | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Brian Svihovec <svihovec> | ||||
| Component: | EDT | Assignee: | Project Inbox <edt.javascriptgen-inbox> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P1 | CC: | greer, jeffdouglas | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
This blocks the RUI Technical Sample. I changed the handler into a library, disabled JS gen and enabled Java gen to prove that this problem also exists in Java; consulting with Jeff to get a common fix.... This no longer seems to be happening? It's been awhile; I can't recall whether this was the bug where Jeff made a change to both generators to at least fix the immediate symptom but not the problem.....does the code actually work as expected? This appear to be working correctly, so go ahead and mark this one as resolved. Brian, that's good news....marking it fixed. This high severity defect was fixed several weeks ago, so I am closing. |
Created attachment 203520 [details] Testcase. Import the attached testcase. When you generate the handler you will get the following exception: org.eclipse.edt.mof.codegen.api.TemplateException: java.lang.NullPointerException at org.eclipse.edt.mof.codegen.api.TemplateContext.doInvoke(TemplateContext.java:384) at org.eclipse.edt.mof.codegen.api.TemplateContext.invoke(TemplateContext.java:260) at org.eclipse.edt.gen.javascript.templates.ArrayTypeTemplate.genConversionOperation(ArrayTypeTemplate.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.edt.mof.codegen.api.TemplateContext.doInvoke(TemplateContext.java:359) at org.eclipse.edt.gen.EglContext.invoke(EglContext.java:397) at org.eclipse.edt.gen.javascript.templates.AsExpressionTemplate.genExpression(AsExpressionTemplate.java:25) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) Caused by: java.lang.NullPointerException at org.eclipse.edt.gen.EglContext.getTemplateMethod(EglContext.java:430) at org.eclipse.edt.gen.EglContext.invoke(EglContext.java:392) at org.eclipse.edt.gen.javascript.templates.ArrayLiteralTemplate.genExpression(ArrayLiteralTemplate.java:27) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.edt.mof.codegen.api.TemplateContext.doInvoke(TemplateContext.java:357) ... 185 more