Uploaded image for project: 'Contacts App'
  1. Contacts App
  2. CNTCTSAPP-36

ContactNameColumnFormatter throws exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • 1.1.1
    • 1.0
    • None

    Description

      If a contact has e.g. no first name defined, then ContactNameColumnFormatter throws the following exception:

      2013-01-22 14:33:04,291 WARN .ui.app.contacts.column.ContactNameColumnFormatter: Unable to get name of contact for column javax.jcr.PathNotFoundException: firstName

      This issue occurred because currently when we create a contact, an "untitled" node is immediately created, that is before validating and saving the form. However such case could happen as well after e.g. importing contacts with some missing names.

      Therefore we should fix it anyway because a formatter shouldn't throw an exception if a property is missing, it should just return blank.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              czimmermann Christopher Zimmermann
              mgeljic Mikaël Geljić
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD