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

NullPointerException thrown in toString and constructor for PolicyConstraint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.0
    • 1.2.0
    • security-libs
    • None
    • 1.2beta
    • sparc
    • solaris_2.5.1
    • Not verified

      A null pointer exception is thrown in the toString method of the PolicyConstraint class when an object is created with the first parameter as null, even though the Javadocs for the class specify that this first parameter is allowable as null.

      A null pointer exception is also thrown if calling the encode method with an object initialized with the first parameter null, and then using this encoded value to create a PolicyConstraint object.

      Execute the attached test file to see these results.

            claisunw Charlie Lai (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: