Community
Participate
Working Groups
When compiling a Form that's not nested in a FormGroup an NPE is thrown. java.lang.NullPointerException at org.eclipse.edt.mof.egl.impl.FormImpl.getMofSerializationKey(FormImpl.java:77) at org.eclipse.edt.mof.egl.egl2mof.Egl2MofPart.handleVisitPart(Egl2MofPart.java:374) at org.eclipse.edt.mof.egl.egl2mof.Egl2MofPart.defaultHandleVisitPart(Egl2MofPart.java:330) at org.eclipse.edt.mof.egl.egl2mof.Egl2MofPart.visit(Egl2MofPart.java:257) at org.eclipse.edt.mof.egl.egl2mof.Egl2Mof.visit(Egl2Mof.java:1) at org.eclipse.edt.compiler.core.ast.TopLevelForm.accept(TopLevelForm.java:51)
Created attachment 195148 [details] Checks for a null container Not sure if the patch I attached is all that's needed to fix this.
I made a small change to your patch. Here is the change that I made to FormImpl: public String getMofSerializationKey() { if (getContainer() == null) { return super.getMofSerializationKey(); } else { return getContainer().getMofSerializationKey() + Type.NestedPartDelimiter + getName(); } }
Verified in CVS 5/23