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

TimeZone causes NPE

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      TimeZone.getTimeZone(null) should fallback to default timezone (GMT) without causing NPE

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Make this call:

      TimeZone.getTimeZone(null)

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Fallback Timezone GTM should be returned.
      ACTUAL -
      NPE is thrown.

      ---------- BEGIN SOURCE ----------
      TimeZone.getTimeZone(null)
      ---------- END SOURCE ----------

        1. Main.java
          0.2 kB
          Cody Gaffney

            cgaffney Cody Gaffney
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: