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

AttributedString Constructors don't document NPE on null arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs
    • None
    • generic
    • generic

      Eg This constructor will - as seen below always throw NPE if either argument
      is null. This should be specified.
       
      public AttributedString(String text,
      Map<? extends Attribute, ?> attributes)
          {
              if (text == null || attributes == null) {
                  throw new NullPointerException();
              }

      The same applies to all rest of the constructors too
      ###@###.### 11/4/04 21:51 GMT

            nlindenbsunw Norbert Lindenberg (Inactive)
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: