Issue #20

Changing class representation mode may cause NullPointerException

Added by Marijan Matic over 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:25 November 2011
Priority:MediumDue date:
Assignee:Christophe Malgouyres% Done:

100%

Category:-
Target version:Modelio 2.1.1

Description

When all elements on the class diagram are selected (for example, when pressing Ctrl+A) and user tries to change the representation mode ( Configuration –> Diagram Styles –> Class –> Representation Mode ) the application throws NullPointerException.

!ENTRY org.eclipse.jface 4 2 2011-11-25 10:48:14.342
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at com.modeliosoft.modelio.diagram.symbol.view.SymbolView.styleChanged(SymbolView.java:211)
at com.modeliosoft.modelio.diagram.styles.core.Style.fireListeners(Style.java:267)
at com.modeliosoft.modelio.diagram.styles.core.Style.styleChanged(Style.java:239)
at com.modeliosoft.modelio.diagram.styles.core.Style.fireListeners(Style.java:267)
at com.modeliosoft.modelio.diagram.styles.core.Style.setProperty(Style.java:233)
at com.modeliosoft.modelio.diagram.styles.editingsupport.StylePropertyEditingSupport.setValue(StylePropertyEditingSupport.java:157)
at org.eclipse.jface.viewers.EditingSupport.saveCellEditorValue(EditingSupport.java:113)
at org.eclipse.jface.viewers.ColumnViewerEditor.saveEditorValue(ColumnViewerEditor.java:455)
at org.eclipse.jface.viewers.ColumnViewerEditor.applyEditorValue(ColumnViewerEditor.java:311)
at org.eclipse.jface.viewers.ColumnViewerEditor$2.applyEditorValue(ColumnViewerEditor.java:153)
at org.eclipse.jface.viewers.CellEditor$1.run(CellEditor.java:333)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.CellEditor.fireApplyEditorValue(CellEditor.java:331)
at com.modeliosoft.modelio.diagram.styles.editingsupport.combo.ComboBoxCellEditor2.applyEditorValueAndDeactivate(EnumComboBoxCellEditor.java:296)
at com.modeliosoft.modelio.diagram.styles.editingsupport.combo.ComboBoxCellEditor2$3.widgetSelected(EnumComboBoxCellEditor.java:200)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.custom.CCombo.listEvent(CCombo.java:1095)
at org.eclipse.swt.custom.CCombo$1.handleEvent(CCombo.java:115)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
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(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at com.modeliosoft.modelio.app.intro.Application.start(Application.java:72)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
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(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
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)

History

#1 Updated by Christophe Malgouyres over 7 years ago

  • Status changed from New to Assigned
  • Assignee set to Christophe Malgouyres
  • Target version set to Modelio 2.1.1

Assigning issue.

#2 Updated by Christophe Malgouyres over 7 years ago

  • Status changed from Assigned to Resolved

Fixed in Modelio 2.1.1

#3 Updated by Christophe Demeulemeester about 7 years ago

  • Status changed from Resolved to Closed

Validated with Modelio 2.1.1 – 201203281815

Also available in: Atom PDF