Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-28473

Problem when closing the workspace after creating diagram with the Hibernate 6.0 runtime

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.24.0.AM1
    • 4.23.0.Final
    • hibernate
    • None
    • ---

      The following message is given: Cannot invoke "String.length()" because "res" is null

      java.lang.NullPointerException: Cannot invoke "String.length()" because "res" is null
      	at org.jboss.tools.hibernate.ui.diagram.editors.model.Utils.getName(Utils.java:67)
      	at org.jboss.tools.hibernate.ui.diagram.editors.model.Shape.getKey(Shape.java:166)
      	at org.jboss.tools.hibernate.ui.diagram.editors.model.OrmShape.setPosition(OrmShape.java:390)
      	at org.jboss.tools.hibernate.ui.diagram.editors.model.OrmShape.saveState(OrmShape.java:422)
      	at org.jboss.tools.hibernate.ui.diagram.editors.model.BaseElement.saveState(BaseElement.java:382)
      	at org.jboss.tools.hibernate.ui.diagram.editors.model.OrmDiagram.saveState(OrmDiagram.java:608)
      	at org.jboss.tools.hibernate.ui.view.DiagramEditorInput.saveState(DiagramEditorInput.java:133)
      	at org.eclipse.ui.internal.EditorHistoryItem.saveState(EditorHistoryItem.java:215)
      	at org.eclipse.ui.internal.EditorHistory.saveState(EditorHistory.java:151)
      	at org.eclipse.ui.internal.Workbench.saveWorkbenchState(Workbench.java:3510)
      	at org.eclipse.ui.internal.Workbench.persistWorkbenchState(Workbench.java:3485)
      	at org.eclipse.ui.internal.Workbench$13.run(Workbench.java:1174)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
      	at org.eclipse.ui.internal.Workbench.persist(Workbench.java:1171)
      	at org.eclipse.ui.internal.Workbench$41.runInUIThread(Workbench.java:2792)
      	at org.eclipse.ui.progress.UIJob.lambda$0(UIJob.java:95)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4306)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3929)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
      	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
      

              kaers@redhat.com Koen Aers
              kaers@redhat.com Koen Aers
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: