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

NullPointerException in CSS style class

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • 8
    • 8
    • javafx
    • None
    • 11:11:51,387 INFO Java version : 1.8.0-ea
      11:11:51,387 INFO JavaFx version : 8.0.0-ea-b81
      11:11:51,387 INFO OS version : Windows 7 6.1 amd64

    Description

      Add in the fxml-template panel:
      <Pane fx:id="logoPane" prefHeight="200.0" prefWidth="200.0" />
      After that my program does not run, on the console output here is an exception.
      Such exceptions found only in java 8

      java.lang.IllegalArgumentException: styleClass cannot be null or empty String
              at com.sun.javafx.css.StyleClassSet.getStyleClass(StyleClassSet.java:139)
              at com.sun.javafx.css.StyleManager.findMatchingStyles(StyleManager.java:1328)
              at javafx.scene.CssStyleHelper.createStyleHelper(CssStyleHelper.java:109)
              at javafx.scene.Node.impl_processCSS(Node.java:8303)
              at javafx.scene.Parent.impl_processCSS(Parent.java:1156)
              at javafx.scene.Parent.impl_processCSS(Parent.java:1165)
              at javafx.scene.Parent.impl_processCSS(Parent.java:1165)
              at javafx.scene.Parent.impl_processCSS(Parent.java:1165)
              at javafx.scene.Parent.impl_processCSS(Parent.java:1165)
              at javafx.scene.Node.processCSS(Node.java:8229)
              at javafx.scene.Node.processCSS(Node.java:8222)
              at javafx.scene.Node.processCSS(Node.java:8222)
              at javafx.scene.Node.processCSS(Node.java:8222)
              at javafx.scene.Scene.doCSSPass(Scene.java:506)
              at javafx.scene.Scene.access$3700(Scene.java:183)
              at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2249)
              at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:351)
              at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:561)
              at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:540)
              at com.sun.javafx.tk.quantum.QuantumToolkit$15.run(QuantumToolkit.java:425)
              at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:94)
              at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
              at com.sun.glass.ui.win.WinApplication.access$300(WinApplication.java:39)
              at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:101)
              at java.lang.Thread.run(Thread.java:722)

      Panel settings are:
      http://clip2net.com/s/4LAVyU

      Can I make an exception to a more informative. For example what component it is and etc


      Attachments

        Activity

          People

            dgrieve David Grieve
            valexandejfx Vorobyev Alexander (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: