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

Fix NPE on UIUserAndGroupSelectItems.getValue()

    XMLWordPrintable

    Details

    • Tags:
    • Backlog priority:
      800
    • Team:
      AT
    • Sprint:
      nxAT Sprint 11.1.5
    • Story Points:
      1

      Description

      After having installed 10.10-HF02 the following exception is thrown when navigating to a tab on an existing app in 10.10

      Caused by: java.lang.NullPointerException
      	at org.nuxeo.ecm.platform.ui.web.directory.UserAndGroupSelectItemFactory.getSelectItem(UserAndGroupSelectItemFactory.java:87)
      	at org.nuxeo.ecm.platform.ui.web.directory.UserAndGroupSelectItemFactory.createSelectItems(UserAndGroupSelectItemFactory.java:152)
      	at org.nuxeo.ecm.platform.ui.web.directory.UIUserAndGroupSelectItems.getValue(UIUserAndGroupSelectItems.java:127)
      	at com.sun.faces.renderkit.SelectItemsIterator.initializeItems(SelectItemsIterator.java:208)
      	at com.sun.faces.renderkit.SelectItemsIterator.hasNext(SelectItemsIterator.java:135)
      	at com.sun.faces.renderkit.html_basic.MenuRenderer.renderOptions(MenuRenderer.java:762)
      	at com.sun.faces.renderkit.html_basic.MenuRenderer.renderSelect(MenuRenderer.java:847)
      	at com.sun.faces.renderkit.html_basic.MenuRenderer.encodeEnd(MenuRenderer.java:297)
      	at org.nuxeo.ecm.platform.ui.web.renderer.NxListboxRenderer.encodeEnd(NxListboxRenderer.java:44)
      	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:919)
      	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1864)
      	at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:282)
      	at org.richfaces.renderkit.html.AjaxOutputPanelRenderer.doEncodeChildren(AjaxOutputPanelRenderer.java:57)
      

      That tab is probably displaying existing widgets impacted by NXP-26637, however this should not cause an exception if the widgets are not updated.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h