Community
Participate
Working Groups
In many places such code can be found: ModelHelper.getBPELEditor(getModel()).isHorizontalLayout() For example, this line can be found in - IfEditPart - InvokeEditPart - acctually any EditPart :) - LeafBorder This can result in NPE because bpelEditor can be null. We can create EditParts inside other than BPELEditor window (for example inside 'Compare' window) EditParts should not assume that they are created inside BPELEditor, they should not assume that BPELEditor exist. Without fixing that it is not possible to implement some features, like 'Visual Compare of BPEL files'. The fix could be very simple: public boolean isHorizontalLayout(EObject model) { BPELEditor bpelEditor = ModelHelper.getBPELEditor(getModel()); if (bpelEditor != null) { return bpelEditor.isHorizontalLayout(); } else { return false; } }
Oleg, assuming you fixed this - can you provide patch based on the latest version of the HEAD code stream ?
Created attachment 132998 [details] patch for this bug
I reviewed and released the patch attached
Comment on attachment 132998 [details] patch for this bug Updated iplog flag for v1.0 release review.