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

[CSS] Drag triggers NPE in StyleManager.removeStylesheetContainer

XMLWordPrintable

      When dragging in SceneBuilder an asset from the Library to the Content panel I sometimes get the stack below.
      I can understand SceneBuilder may do something suspicious but CSS code should probably not throw a NPE: what's your take on that please ?

      SEVERE: An exception was thrown:
      java.lang.NullPointerException
          at com.sun.javafx.css.StyleManager.removeStylesheetContainer(StyleManager.java:677)
          at com.sun.javafx.css.StyleManager.stylesheetRemoved(StyleManager.java:586)
          at com.sun.javafx.css.StyleManager.forget(StyleManager.java:531)
          at javafx.scene.Parent.scenesChanged(Parent.java:650)
          at javafx.scene.Node.invalidatedScenes(Node.java:828)
          at javafx.scene.Node.setScenes(Node.java:894)
          at javafx.scene.Parent.scenesChanged(Parent.java:654)
          at javafx.scene.Node.invalidatedScenes(Node.java:828)
          at javafx.scene.Node.setScenes(Node.java:894)
          at javafx.scene.Scene$9.invalidated(Scene.java:1081)
          at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:111)
          at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:145)
          at javafx.scene.Scene.setRoot(Scene.java:1038)
          at com.oracle.javafx.scenebuilder.kit.editor.images.ImageUtils.getImageFromNode(ImageUtils.java:99)
          at com.oracle.javafx.scenebuilder.kit.editor.drag.source.LibraryDragSource.makeDragView(LibraryDragSource.java:197)
          at com.oracle.javafx.scenebuilder.kit.editor.panel.library.LibraryListCell.lambda$new$260(LibraryListCell.java:114)
          at com.oracle.javafx.scenebuilder.kit.editor.panel.library.LibraryListCell$$Lambda$541/1275398003.handle(Unknown Source)
          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)
          at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
          at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
          at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
          at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
          at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
          at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
          at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
          at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
          at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
          at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
          at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
          at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
          at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
          at javafx.event.Event.fireEvent(Event.java:198)
          at javafx.scene.Scene$DnDGesture.fireEvent(Scene.java:2900)
          at javafx.scene.Scene$DnDGesture.process(Scene.java:2979)
          at javafx.scene.Scene$DnDGesture.access$8000(Scene.java:2876)
          at javafx.scene.Scene$MouseHandler.process(Scene.java:3740)
          at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3452)
          at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1728)
          at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2461)
          at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:348)
          at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:273)
          at java.security.AccessController.doPrivileged(Native Method)
          at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:382)
          at com.sun.glass.ui.View.handleMouseEvent(View.java:553)
          at com.sun.glass.ui.View.notifyMouse(View.java:925)

            dgrieve David Grieve
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: