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

RefAddr.toString() throws NullPointerException when content is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.1
    • 1.4.0
    • core-libs
    • None
    • ladybird
    • sparc
    • solaris_2.6

        If you try to print a RefAddr that contains a null content
        (getContent() returns null), you get a NullPointerException.
        getContent() is allowed to be null, as per spec.


        Exception in thread "main" java.lang.NullPointerException
                at javax.naming.RefAddr.toString(RefAddr.java, Compiled Code)
                at javax.naming.Reference.toString(Reference.java, Compiled Code)
                at java.lang.String.valueOf(String.java, Compiled Code)

              rleesunw Rosanna Lee (Inactive)
              rleesunw Rosanna Lee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: