Uploaded image for project: 'Content Editor'
  1. Content Editor
  2. CONTEDIT-189

ExpandingLinkFieldFactory NPE when removing an asset from an app

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.1.5, 1.2
    • None
    • None
    • Kromeriz 150
    • 1

    Description

      Reproduce:

      Open Stories app and edit "/stories-demo/lost-and-found-in-swiss-alps" and remove "/stories-demo/found-in-switzerland/hiker-joshua-earle-234844.jpg" link from image block (do not remove whole block, only link) and click save. NPE occures and block is removed.

      Invocation of method valueChange in info.magnolia.editor.app.field.ExpandingLinkFieldFactory$$Lambda$506/1555260528 failed. caused by NullPointerException
      
      Caused by: java.lang.NullPointerException
      	at info.magnolia.editor.app.field.ExpandingLinkFieldFactory.lambda$createFieldComponent$f00a8838$1(ExpandingLinkFieldFactory.java:48) ~[magnolia-content-editor-1.1.5-SNAPSHOT.jar:?]
      	at sun.reflect.GeneratedMethodAccessor701.invoke(Unknown Source) ~[?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_161]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_161]
      	at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510) ~[vaadin-server-8.1.5.jar:8.1.5]
      

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                rsiska Robert Šiška
                mdivilek Milan Divilek
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD