Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class Diagram: Java null pointer when cliking two times on a generalization #665

Closed
fbats opened this issue May 5, 2015 · 2 comments
Closed
Assignees
Milestone

Comments

@fbats
Copy link
Contributor

fbats commented May 5, 2015

When cliking two times on a generalization relationship a java null pointer appear in console in debug mode.
Steps:

  • in a class diagram create Two classes and a Generalization between classes.
  • click on the generalization a firt time to select it.
  • click a second time on the same element. (as if we try to direct edit the element)
    the same error seem to be reproduce for all connection wihtout label (interface realization, ...)

Stack trace:

!ENTRY org.eclipse.ui 4 0 2015-05-05 14:13:18.587
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.sirius.diagram.ui.internal.edit.parts.AbstractGeneratedDiagramNameEditPart.performDirectEdit(AbstractGeneratedDiagramNameEditPart.java:279)
at org.eclipse.sirius.diagram.ui.internal.edit.parts.AbstractGeneratedDiagramNameEditPart$2.run(AbstractGeneratedDiagramNameEditPart.java:310)
at org.eclipse.emf.transaction.impl.TransactionalEditingDomainImpl.runExclusive(TransactionalEditingDomainImpl.java:328)
at org.eclipse.sirius.diagram.ui.internal.edit.parts.AbstractGeneratedDiagramNameEditPart.performDirectEditRequest(AbstractGeneratedDiagramNameEditPart.java:301)
at org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramNameEditPart.performRequest(AbstractDiagramNameEditPart.java:288)
at org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart.performDirectEditRequest(ConnectionEditPart.java:1500)
at org.eclipse.sirius.diagram.ui.edit.api.part.AbstractDiagramEdgeEditPart.performRequest(AbstractDiagramEdgeEditPart.java:868)
at org.eclipse.gef.tools.DelayedDirectEditHelper.run(DelayedDirectEditHelper.java:108)
at org.eclipse.swt.widgets.Display.runTimer(Display.java:4273)
at org.eclipse.swt.widgets.Display.messageProc(Display.java:3360)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
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:648)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

@mbats mbats added this to the 7.1.0 milestone Jun 20, 2016
AxelRICHARD added a commit to AxelRICHARD/UML-Modeling that referenced this issue Jan 25, 2017
…ression

This fix provides a workaround by adding a DirectEditTool for mappings
with no label expression.
This should be removed when
https://bugs.eclipse.org/bugs/show_bug.cgi?id=511036 will be fixed.

Change-Id: I17c0583fabc1342ee76f3f9875b690b9fb4a4679
Signed-off-by: Axel Richard <axel.richard@obeo.fr>
@AxelRICHARD AxelRICHARD self-assigned this Jan 25, 2017
@mbats mbats closed this as completed in e0764b4 Jan 26, 2017
@mbats mbats reopened this Jan 26, 2017
@mbats
Copy link
Member

mbats commented Jan 26, 2017

The previous fix provides a workaround by adding a DirectEditTool for mappings
with no label expression.
This should be removed when
https://bugs.eclipse.org/bugs/show_bug.cgi?id=511036 will be fixed.

@mbats mbats modified the milestones: 8.0.0, 7.2.0 Jan 26, 2017
@AxelRICHARD
Copy link
Member

The bug seems to be fix with the latest version of Sirius and UML Designer (see investigation on https://bugs.eclipse.org/bugs/show_bug.cgi?id=511036). So I close the bug. Feel free to reopen it if the problem is still there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants