Community
Participate
Working Groups
Using EGL2IR on a folder containing a simple handler I am getting an exception My handler looks like handler test type RUIhandler {initialUI = [ ui ],onConstructionFunction = start, cssFile="css/test.css", title="test"} ui GridLayout{ columns = 3, rows = 4, cellPadding = 4, children = [] }; intVar int=1; stringVar string="asdf"; function start() end end The exception is org.eclipse.edt.compiler.internal.core.builder.BuildException: java.lang.NullPointerException at org.eclipse.edt.mof.egl.compiler.AbstractProcessingQueue.process(AbstractProcessingQueue.java:189) at org.eclipse.edt.mof.egl.compiler.AbstractProcessingQueue.process(AbstractProcessingQueue.java:154) at org.eclipse.edt.mof.egl.compiler.EGL2IR.compile(EGL2IR.java:167) at org.eclipse.edt.mof.egl.compiler.EGL2IR.main(EGL2IR.java:75) at com.clearblade.edt.egl.doc.EGLDocGenerator.forceCompile(EGLDocGenerator.java:32) at com.clearblade.edt.egl.doc.EGLDocManager.<init>(EGLDocManager.java:57) at com.clearblade.edt.egl.doc.popup.actions.EGLPopup.run(EGLPopup.java:46) at org.eclipse.ui.internal.PluginAction.runWithEvent(Unknown Source) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Unknown Source) at org.eclipse.jface.action.ActionContributionItem.access$2(Unknown Source) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657) at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source) at org.eclipse.ui.internal.Workbench.runUI(Unknown Source) at org.eclipse.ui.internal.Workbench.access$4(Unknown Source) at org.eclipse.ui.internal.Workbench$7.run(Unknown Source) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Unknown Source) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.internal.ide.application.IDEApplication.start(Unknown Source) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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.equinox.launcher.Main.invokeFramework(Main.java:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408) at org.eclipse.equinox.launcher.Main.main(Main.java:1384) Caused by: java.lang.NullPointerException at org.eclipse.edt.mof.egl.egl2mof.Egl2MofBase.mofTypeFromTypedElement(Egl2MofBase.java:856) at org.eclipse.edt.mof.egl.egl2mof.Egl2MofBase.setUpEglTypedElement(Egl2MofBase.java:1753) at org.eclipse.edt.mof.egl.egl2mof.Egl2Mof.setUpEglTypedElement(Egl2Mof.java:1) at org.eclipse.edt.mof.egl.egl2mof.Egl2MofMember.visit(Egl2MofMember.java:109) at org.eclipse.edt.mof.egl.egl2mof.Egl2Mof.visit(Egl2Mof.java:1) at org.eclipse.edt.compiler.core.ast.ClassDataDeclaration.accept(ClassDataDeclaration.java:88) at org.eclipse.edt.mof.egl.egl2mof.Egl2MofPart.handleContents(Egl2MofPart.java:572) at org.eclipse.edt.mof.egl.egl2mof.Egl2MofPart.defaultHandleVisitPart(Egl2MofPart.java:331) at org.eclipse.edt.mof.egl.egl2mof.Egl2MofPart.visit(Egl2MofPart.java:158) at org.eclipse.edt.mof.egl.egl2mof.Egl2Mof.visit(Egl2Mof.java:1) at org.eclipse.edt.compiler.core.ast.Handler.accept(Handler.java:52) at org.eclipse.edt.mof.egl.egl2mof.Egl2Mof.convert(Egl2Mof.java:41) at org.eclipse.edt.mof.egl.compiler.Processor.createIRFromBoundAST2(Processor.java:164) at org.eclipse.edt.mof.egl.compiler.Processor.level03Compile(Processor.java:120) at org.eclipse.edt.mof.egl.compiler.AbstractProcessingQueue.process(AbstractProcessingQueue.java:171) ... 35 more
I believe this is fixed now. I cannot recreate the original problem. Not sure when it was fixed (we have slowly been adding error condition checking to the mof generator).
Closing this defect.