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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • core
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: