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

Build 45 throws NullPointerException when loading applet/webstart containing deprecated CSS style (linear gradient)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.0.2
    • Component/s: javafx
    • Labels:

      Description

      When loading starting my application as an applet or webstart application I get the following exception which prevents the applet/webstart program from rendering completely. I am using some linear gradients which, apparently, uses attributes which have been deprecated. This is an easy fix but a NullPointerException should not be thrown, that is, this should be handled more gracefully (this causes my application to be partially rendered in the browser window and it was not entirely clear why this was happening at first).

      java.lang.NullPointerException
      at com.sun.javafx.css.parser.CSSParser.formatDeprecatedMessage(Unknown Source)
      at com.sun.javafx.css.parser.CSSParser.linearGradient(Unknown Source)
      at com.sun.javafx.css.parser.CSSParser.parse(Unknown Source)
      at com.sun.javafx.css.parser.CSSParser.parsePaintLayers(Unknown Source)
      at com.sun.javafx.css.parser.CSSParser.valueFor(Unknown Source)
      at com.sun.javafx.css.parser.CSSParser.declaration(Unknown Source)
      at com.sun.javafx.css.parser.CSSParser.declarations(Unknown Source)
      at com.sun.javafx.css.parser.CSSParser.parseStyle(Unknown Source)
      at com.sun.javafx.css.StyleHelper.getStyles(Unknown Source)
      at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
      at javafx.scene.Node.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.control.Control.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.control.Control.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.control.Control.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.control.Control.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Node.processCSS(Unknown Source)
      at javafx.scene.Scene.doCSSPass(Unknown Source)
      at javafx.scene.Scene.preferredSize(Unknown Source)
      at javafx.scene.Scene.impl_preferredSize(Unknown Source)
      at javafx.stage.Window.adjustSize(Unknown Source)
      at javafx.stage.Window.access$700(Unknown Source)
      at javafx.stage.Window$13.invalidated(Unknown Source)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
      at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
      at javafx.stage.Window.setShowing(Unknown Source)
      at javafx.stage.Window.show(Unknown Source)
      at javafx.stage.Stage.show(Unknown Source)
      at com.att.cso.mss.tooling.calendar.MSSCalendarApplication.start(MSSCaource)
      at javafx.scene.control.Control.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.control.Control.impl_processCSS(Unknown Source)
      at javafx.scene.Parent.impl_processCSS(Unknown Source)
      at javafx.scene.Node.processCSS(Unknown Source)
      at javafx.scene.Scene.doCSSPass(Unknown Source)
      at javafx.scene.Scene.preferredSize(Unknown Source)
      at javafx.scene.Scene.impl_preferredSize(Unknown Source)
      at javafx.stage.Window.adjustSize(Unknown Source)
      at javafx.stage.Window.access$700(Unknown Source)
      at javafx.stage.Window$13.invalidated(Unknown Source)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
      at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
      at javafx.stage.Window.setShowing(Unknown Source)
      at javafx.stage.Window.show(Unknown Source)
      at javafx.stage.Stage.show(Unknown Source)
      at com.att.cso.mss.tooling.calendar.MSSCalendarApplication.start(MSSCalendarApplication.java:256)
      at com.sun.javafx.applet.FXApplet2$1.run(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

            • Assignee:
              dgrieve David Grieve (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: