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

(1.1.x) java.io.File((File)null, String) throws NullPointerException

XMLWordPrintable

    • 1.1.8
    • x86
    • windows_nt
    • Verified



      Name: mf23781 Date: 07/14/98


      According to the javadoc API of the java.io.File constructors,
      the following call:

      new File((File) null, "name")

      should return an instance of File for the file "name" in current
      working directory.
      However, a NullPointerException is thrown instead. After checking
      with the source code,it is found that the case of null as the
      first parameter is not handled at all.


      ======================================================================

            ngmr Neil Richards
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: