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

javafx.util.Pair null key hashcode npe

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 8u66
    • javafx
    • x86
    • os_x

      FULL PRODUCT VERSION :
      java version "1.8.0_60"
      Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
      Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      OSX Yosemite 10.10.5

      A DESCRIPTION OF THE PROBLEM :
      If the key in a javafx.util.Pair is null, the hashcode method throws a NullPointerException because it tries to call key.hashcode() without checking if key is null first.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            vadim Vadim Pakhnushev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: