Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8092711

[TOY] hello.HelloDialogs throwing null pointer exceptions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • 8u40
    • javafx
    • None


      The hello.HelloDialogs is throwing Null Pointer exceptions, I think because it is failing to find a resource here:

              dialogPane.setGraphic(new ImageView(new Image(AccordionSkin.class.getResource("modena/hello.dialog-error.png").toExternalForm())));

      Seen with Exception Dialog, Font Dialog, Command Links, Linear Wizard, Branching Wizard

      Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
      at hello.dialog.dialogs.ExceptionDialog.<init>(ExceptionDialog.java:48)
      at hello.HelloDialogs$5.handle(HelloDialogs.java:233)
      at hello.HelloDialogs$5.handle(HelloDialogs.java:230)
      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)


      Seen on i.MX6

            jgiles Jonathan Giles
            ddhill David Hill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: