Uploaded image for project: 'JCR Tools'
  1. JCR Tools
  2. JCRTOOLS-7

[Ex|Im]porter Sub Apps Throw Exception on Null 'Base Path' field

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • None
    • 1.0
    • None
    • Yes
    • Basel 21
    • 2

    Description

      @Exporter sub app around L88:
      <code>
      final String rawBasePath = item.getItemProperty(JcrToolsConstants.BASE_PATH).getValue().toString();

      </code>

      @Importer sub app around L81:
      <code>
      final String path = item.getItemProperty(JcrToolsConstants.PATH).getValue().toString();
      </code>

      If user clears those fields, an "Internal error ..." (unhandled (null pointer) exception (see attached screenshot) occurs.

      Suggested fix: in the event of null 'path' in either case, revert to default '/' path.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              bandersen Bradley Andersen
              bandersen Bradley Andersen
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD