Disallow null prefix and suffix in DecimalFormat

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: 25
    • Component/s: core-libs
    • None
    • b13
    • generic
    • generic

      Code such as new `DecimalFormat().setPositivePrefix(null)` is allowed. These prefix and suffix setters should disallow `null` as input as all it does is creates an illegal state. Otherwise, almost any DecimalFormat operation will throw NPE when trying to process the prefix/suffix.

            Assignee:
            Justin Lu
            Reporter:
            Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: