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

NPE in EmailField due to missing entry in click-control.properties

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None
    • Environment:
      Click 0.18, but I don't see it fixed in CVS

      Description

      When an invalid non-empty email is entered in the EmailField, the following NPE occurs:

      java.lang.NullPointerException
      at java.text.MessageFormat.applyPattern(MessageFormat.java:414)
      at java.text.MessageFormat.<init>(MessageFormat.java:350)
      at java.text.MessageFormat.format(MessageFormat.java:803)
      at net.sf.click.control.Field.getMessage(Field.java:516)
      at net.sf.click.control.Field.getMessage(Field.java:499)
      at net.sf.click.extras.control.EmailField.onProcess(EmailField.java:138)

      Looks like "email-format-error" key is missing from click-control.properties

        Attachments

          Activity

            People

            • Assignee:
              medgar Malcolm Edgar
              Reporter:
              andrus Andrus Adamchik
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: