Uploaded image for project: 'Click'
  1. Click
  2. CLK-441

ClickUtils toLabel should return empty Sting for null values instead of throwing exception

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5 M3
    • Fix Version/s: 1.5 RC1
    • Component/s: core
    • Labels:
      None

      Description

      When invoking ClickUtils#toLabel it throws an IllegalArgumentException if the argument is null. This was fine 1.4 branch where Controls always had a name defined.

      In 1.5 it is possible not to set the name so #toLabel should instead return an empty String instead of exception.

        Attachments

          Activity

            People

            • Assignee:
              sabob Bob Schellink
              Reporter:
              sabob Bob Schellink
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: