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

NPE in TextFieldSkin of PasswordField

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      Windows 7 64bit
      Java Version: 1.8.0-ea-b114
      JavaFX Version: 8.0.0-ea-b114

      Description

      May be related to fix for RT-33170

      In this case the PasswordField text value is likely being set to NULL

      Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
              at com.sun.javafx.scene.control.skin.TextFieldSkin.maskText(Unknown Source)
              at com.sun.javafx.scene.control.skin.TextFieldSkin$4.computeValue(Unknown Source)
              at javafx.beans.binding.StringBinding.get(Unknown Source)
              at javafx.beans.binding.StringBinding.get(Unknown Source)
              at javafx.beans.binding.StringExpression.getValue(Unknown Source)
              at javafx.beans.binding.StringExpression.getValue(Unknown Source)
              at javafx.beans.property.StringPropertyBase.get(Unknown Source)
              at javafx.beans.property.StringPropertyBase.get(Unknown Source)
              at javafx.scene.text.Text.getText(Unknown Source)
              at javafx.scene.text.Text.getTextInternal(Unknown Source)
              at javafx.scene.text.Text.needsFullTextLayout(Unknown Source)
              at javafx.scene.text.Text.access$400(Unknown Source)
              at javafx.scene.text.Text$4.invalidated(Unknown Source)
              at javafx.beans.property.StringPropertyBase.markInvalid(Unknown Source)
              at javafx.beans.property.StringPropertyBase.access$000(Unknown Source)
              at javafx.beans.property.StringPropertyBase$Listener.invalidated(Unknown Source)
              at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(Unknown Source)
              at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
              at javafx.beans.binding.StringBinding.invalidate(Unknown Source)
              at com.sun.javafx.binding.BindingHelperObserver.invalidated(Unknown Source)
              at com.sun.javafx.binding.ExpressionHelper$Generic.fireValueChangedEvent(Unknown Source)
              at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(Unknown Source)
              at javafx.scene.control.TextInputControl$TextProperty.fireValueChangedEvent(Unknown Source)
              at javafx.scene.control.TextInputControl$TextProperty.markInvalid(Unknown Source)
              at javafx.scene.control.TextInputControl$TextProperty.set(Unknown Source)
              at javafx.scene.control.TextInputControl.setText(Unknown Source)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              leifs Leif Samuelsson (Inactive)
              Reporter:
              swpalmer Scott Palmer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: