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

com.sun.javafx.css.BitSet.equals(null) throws NPE

XMLWordPrintable

    • b12
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      When comparing a JavaFX BitSet with null a NullPointerException is thrown. Because the null check was removed.
      This is especially problematic when checking if a list with null values contains a BitSet.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a BitSet and call BitSet.equals(null).

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      I would expect Bitset.equals to return false.
      ACTUAL -
      A NullPointerException is thrown.

            mstrauss Michael Strauß
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: