Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-13487

NPE when adding a complex field containing a select2 widget

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 5.8
    • Fix Version/s: 5.8.0-HF04
    • Component/s: Layouts & Widgets

      Description

      In Studio I create a layout containing a complex field as a list widget
      In the complex field I use a single directory suggestion widget
      When I use this layout and try to click on the add button the platform crashes with NPE. See stacktrace below :

      Caused by: javax.el.ELException: /widgets/suggest_one_directory_widget_template.xhtml @56,92 value="#{select2Actions.encodeParametersForDirectory(widget, widgetProperties)}": java.lang.NullPointerException
      	at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
      	at javax.faces.component.UIOutput.getValue(UIOutput.java:184)
      	... 173 more
      Caused by: java.lang.NullPointerException
      	at org.nuxeo.ecm.platform.ui.select2.Select2ActionsBean.encodeParameters(Select2ActionsBean.java:219)
      	at org.nuxeo.ecm.platform.ui.select2.Select2ActionsBean.encodeParametersForDirectory(Select2ActionsBean.java:149)
      	at sun.reflect.GeneratedMethodAccessor1034.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: