RefAddr.toString() throws NullPointerException when content is null

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.3.1
    • Affects Version/s: 1.4.0
    • Component/s: 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)

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: