Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-1148

Drawing extends arrow from class with no source throws exception

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.1.3
    • Component/s: Graph
    • Sprint:
      BlueJ 4.1.3

      Description

      Drawing an extends arrow from a class with no source throws an exception. Of course it is not possible to extend such a class so the action should be prohibited or display an error.

      Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
      	at bluej.pkgmgr.Package.userAddExtendsClassDependency(Package.java:1809)
      	at bluej.pkgmgr.PackageEditor.clickForExtends(PackageEditor.java:1063)
      	at bluej.pkgmgr.target.Target.lambda$new$1(Target.java:162)
      	at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      	at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      	at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
      	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      	at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      	at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      

        Attachments

          Activity

            People

            • Assignee:
              hitech Hamza Hamza
              Reporter:
              davmac Davin McCall
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: