Uploaded image for project: 'Content Translation Support'
  1. Content Translation Support
  2. MGNLCTS-132

NullPointerException when two fields we have same key, itemProvider, namePrefix..

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 2.5.2
    • 2.5.1
    • Yes
    • Maintenance 44, Maintenance 45
    • 1

      Steps to reproduce

      1. Create a dialog like the one in the picture
      2. Export and import content using the content translation app

       

      Getting NullPointerException when a multivalue field contains extra fields that should not be translated.

      java.lang.NullPointerException: null
      	at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1470) ~[?:?]
      	at java.text.DateFormat.parse(DateFormat.java:393) ~[?:?]
      	at info.magnolia.translation.io.TranslationItem$Builder.withLastModificationTime(TranslationItem.java:184) ~[magnolia-content-translation-2.5.1.jar:?]
      

       

      Duplicated keys can be generated with different combination of itemProvider (current, child) and propertyNameDecorator (switchable field) or simple fields (attached example yml):

       

      Expected results

      Import without an error

      Actual results

       

      NullPointerException

      Workaround

      There is no workaround

      Development notes

        Acceptance criteria

              tmiyar Teresa Miyar
              tmiyar Teresa Miyar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD