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

Regression: Default buttons lead to text field NPEs again in 2.0 final

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • fx2.0
    • javafx
    • JavaFX 2.0 final

      We just upgraded to 2.0 final. Although the NullPointerException was fixed in build 44, the default button problems with text fields are back in the 2.0 final release. When I hit enter in a text field I get the NullPointerException shown below.

      I would like to add that until this day, default buttons have never fully worked in our application, although build 44 came quite close. During spring, hitting enter just did nothing, then in a later JavaFX beta build, we started getting NPEs; then in build 44 we were back to nothing happening when hitting enter in text fields but the good part was, default buttons now worked whenever the focus was not in a text field; now, with JavaFX 2.0 final, we get NPEs once again.

      Because of this recurring problem, it is my hope that default button functionality will have a strong quality assurance focus before the next release.

      java.lang.NullPointerException
      at com.sun.javafx.scene.control.skin.TextFieldSkin.handleKeyPressedEvent(TextFieldSkin.java:495)
      at com.sun.javafx.scene.control.skin.TextInputSkin$7.handle(TextInputSkin.java:110)
      at com.sun.javafx.scene.control.skin.TextInputSkin$7.handle(TextInputSkin.java:107)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:56)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:162)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:115)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:47)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33)
      at javafx.event.Event.fireEvent(Event.java:171)
      at javafx.scene.Scene$KeyHandler.process(Scene.java:2788)
      at javafx.scene.Scene$KeyHandler.access$1500(Scene.java:2718)
      at javafx.scene.Scene.impl_processKeyEvent(Scene.java:1328)
      at javafx.scene.Scene$ScenePeerListener.keyEvent(Scene.java:1751)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleKeyEvent(GlassViewEventHandler.java:95)
      at com.sun.glass.ui.View.handleKeyEvent(View.java:248)
      at com.sun.glass.ui.View.notifyKey(View.java:534)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$1$1.run(WinApplication.java:49)
      at java.lang.Thread.run(Thread.java:662)

            leifs Leif Samuelsson (Inactive)
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: