java.lang.IllegalStateException: @NotNull method de/itemis/mps/editor/diagram/runtime/jgraph/SmartGuide_PointPair.snap must not return null

GitHub | vlsi | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    diagram/runtime/jgraph/SmartGuide_PointPair.snap must not return null when selecting component

    GitHub | 7 months ago | vlsi
    java.lang.IllegalStateException: @NotNull method de/itemis/mps/editor/diagram/runtime/jgraph/SmartGuide_PointPair.snap must not return null

    Root Cause Analysis

    1. java.lang.IllegalStateException

      @NotNull method de/itemis/mps/editor/diagram/runtime/jgraph/SmartGuide_PointPair.snap must not return null

      at de.itemis.mps.editor.diagram.runtime.jgraph.SmartGuide_PointPair.snap()
    2. de.itemis.mps
      MyMovePreview.update
      1. de.itemis.mps.editor.diagram.runtime.jgraph.SmartGuide_PointPair.snap(SmartGuide_PointPair.java:18)
      2. de.itemis.mps.editor.diagram.runtime.jgraph.AbstractSmartGuide.snap(AbstractSmartGuide.java:23)
      3. de.itemis.mps.editor.diagram.runtime.jgraph.MyMovePreview.snap(MyMovePreview.java:138)
      4. de.itemis.mps.editor.diagram.runtime.jgraph.MyMovePreview.update(MyMovePreview.java:61)
      4 frames
    3. com.mxgraph.swing
      mxGraphHandler.mouseDragged
      1. com.mxgraph.swing.handler.mxGraphHandler.mouseDragged(mxGraphHandler.java:1057)
      1 frame
    4. de.itemis.mps
      MyGraphHandler.mouseDragged
      1. de.itemis.mps.editor.diagram.runtime.jgraph.MyGraphHandler.mouseDragged(MyGraphHandler.java:51)
      1 frame
    5. Java RT
      JComponent.processMouseMotionEvent
      1. java.awt.AWTEventMulticaster.mouseDragged(AWTEventMulticaster.java:320)
      2. java.awt.AWTEventMulticaster.mouseDragged(AWTEventMulticaster.java:319)
      3. java.awt.AWTEventMulticaster.mouseDragged(AWTEventMulticaster.java:319)
      4. java.awt.AWTEventMulticaster.mouseDragged(AWTEventMulticaster.java:319)
      5. java.awt.Component.processMouseMotionEvent(Component.java:6581)
      6. javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3342)
      6 frames
    6. de.itemis.mps
      MyGraphComponent$MyGraphControl.processMouseMotionEvent
      1. de.itemis.mps.editor.diagram.runtime.jgraph.MyGraphComponent$MyGraphControl.processMouseMotionEvent(MyGraphComponent.java:507)
      1 frame
    7. Java RT
      EventQueue.dispatchEvent
      1. java.awt.Component.processEvent(Component.java:6302)
      2. java.awt.Container.processEvent(Container.java:2236)
      3. java.awt.Component.dispatchEventImpl(Component.java:4889)
      4. java.awt.Container.dispatchEventImpl(Container.java:2294)
      5. java.awt.Component.dispatchEvent(Component.java:4711)
      6. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
      7. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4542)
      8. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
      9. java.awt.Container.dispatchEventImpl(Container.java:2280)
      10. java.awt.Window.dispatchEventImpl(Window.java:2746)
      11. java.awt.Component.dispatchEvent(Component.java:4711)
      12. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      13. java.awt.EventQueue.access$500(EventQueue.java:97)
      14. java.awt.EventQueue$3.run(EventQueue.java:709)
      15. java.awt.EventQueue$3.run(EventQueue.java:703)
      16. java.security.AccessController.doPrivileged(Native Method)
      17. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      18. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
      19. java.awt.EventQueue$4.run(EventQueue.java:731)
      20. java.awt.EventQueue$4.run(EventQueue.java:729)
      21. java.security.AccessController.doPrivileged(Native Method)
      22. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
      23. java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      23 frames
    8. IDEA
      IdeEventQueue.dispatchEvent
      1. com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:863)
      2. com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:695)
      3. com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
      3 frames
    9. Java RT
      EventDispatchThread.run
      1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      6 frames