-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: jfx23
-
Component/s: javafx
-
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.
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.
- links to
-
Commit(master)
openjdk/jfx/9ac707da
-
Review(master)
openjdk/jfx/1766