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

test.javafx.scene.control.ComboBoxTest - generates NullPointerException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: openjfx11
    • Fix Version/s: openjfx11
    • Component/s: javafx
    • Labels:

      Description

      I could see java.lang.NullPointerException getting logged 3 times when test.javafx.scene.control.ComboBoxTest is run on Mac OS. ( Platform on which it is run should not matter I guess)

      Here is the call log :
      -----------------------------------------------------------------------------
      Exception in thread "Test worker" java.lang.NullPointerException
           at javafx.controls/javafx.scene.control.skin.ComboBoxPopupControl.positionAndShowPopup(ComboBoxPopupControl.java:419)
           at javafx.controls/javafx.scene.control.skin.ComboBoxPopupControl.show(ComboBoxPopupControl.java:252)
           at javafx.controls/javafx.scene.control.skin.ComboBoxBaseSkin.lambda$new$6(ComboBoxBaseSkin.java:128)
           at javafx.controls/com.sun.javafx.scene.control.LambdaMultiplePropertyChangeListenerHandler.lambda$new$1(LambdaMultiplePropertyChangeListenerHandler.java:49)
           at javafx.base/javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:86)
           at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:181)
           at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
           at javafx.base/javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:72)
           at javafx.base/javafx.beans.property.ReadOnlyBooleanWrapper.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:103)
           at javafx.base/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:111)
           at javafx.base/javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145)
           at javafx.controls/javafx.scene.control.ComboBoxBase.setShowing(ComboBoxBase.java:187)
           at javafx.controls/javafx.scene.control.ComboBoxBase.show(ComboBoxBase.java:395)
           at test.javafx.scene.control.ComboBoxTest.ensureCanToggleShowing(ComboBoxTest.java:707)
      -----------------------------------------------------------------------------------------------------
          Exception in thread "Test worker" java.lang.NullPointerException
           at javafx.controls/javafx.scene.control.skin.ComboBoxPopupControl.positionAndShowPopup(ComboBoxPopupControl.java:419)
           at javafx.controls/javafx.scene.control.skin.ComboBoxPopupControl.show(ComboBoxPopupControl.java:252)
           at javafx.controls/javafx.scene.control.skin.ComboBoxBaseSkin.lambda$new$6(ComboBoxBaseSkin.java:128)
           at javafx.controls/com.sun.javafx.scene.control.LambdaMultiplePropertyChangeListenerHandler.lambda$new$1(LambdaMultiplePropertyChangeListenerHandler.java:49)
           at javafx.base/javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:86)
           at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:181)
           at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
           at javafx.base/javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:72)
           at javafx.base/javafx.beans.property.ReadOnlyBooleanWrapper.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:103)
           at javafx.base/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:111)
           at javafx.base/javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145)
           at javafx.controls/javafx.scene.control.ComboBoxBase.setShowing(ComboBoxBase.java:187)
           at javafx.controls/javafx.scene.control.ComboBoxBase.show(ComboBoxBase.java:395)
           at test.javafx.scene.control.ComboBoxTest.ensureCanNotToggleShowingWhenDisabled(ComboBoxTest.java:718)
      ---------------------------------------------------------------------------------------------------
          Exception in thread "Test worker" java.lang.NullPointerException
           at javafx.controls/javafx.scene.control.skin.ComboBoxPopupControl.positionAndShowPopup(ComboBoxPopupControl.java:419)
           at javafx.controls/javafx.scene.control.skin.ComboBoxPopupControl.show(ComboBoxPopupControl.java:252)
           at javafx.controls/javafx.scene.control.skin.ComboBoxBaseSkin.lambda$new$6(ComboBoxBaseSkin.java:128)
           at javafx.controls/com.sun.javafx.scene.control.LambdaMultiplePropertyChangeListenerHandler.lambda$new$1(LambdaMultiplePropertyChangeListenerHandler.java:49)
           at javafx.base/javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:86)
           at javafx.base/com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:181)
           at javafx.base/com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:80)
           at javafx.base/javafx.beans.property.ReadOnlyBooleanPropertyBase.fireValueChangedEvent(ReadOnlyBooleanPropertyBase.java:72)
           at javafx.base/javafx.beans.property.ReadOnlyBooleanWrapper.fireValueChangedEvent(ReadOnlyBooleanWrapper.java:103)
           at javafx.base/javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:111)
           at javafx.base/javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:145)
           at javafx.controls/javafx.scene.control.ComboBoxBase.setShowing(ComboBoxBase.java:187)
           at javafx.controls/javafx.scene.control.ComboBoxBase.show(ComboBoxBase.java:395)
           at test.javafx.scene.control.ComboBoxTest.ensureImpl_getPseudoClassStateReturnsValidValue(ComboBoxTest.java:645)



      Action needed :
      If these are expected exceptions, they should be wrapped around to result in a meaningful message, otherwise, they should result in test failure or should be fixed.

        Attachments

          Activity

            People

            • Assignee:
              aghaisas Ajit Ghaisas
              Reporter:
              aghaisas Ajit Ghaisas
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: