Click
  1. Click
  2. CLK-473

Improve exception handling for Controls with no name defined

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5.1
    • Component/s: core
    • Labels:
      None

      Description

      In pre 1.5 releases Click restricted Controls to have names defined.

      1.5 made names optional. However certain controls such as Fields and Link's must have names defined, otherwise they throw NPE during request binding.

      We need to improve the Controls which must have names defined to throw an exception. A good place to check and throw the exception might be in Control#setParent.

        Activity

        Hide
        Bob Schellink added a comment -

        fixed for 1.5.1

        Show
        Bob Schellink added a comment - fixed for 1.5.1

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development