ICEfaces
  1. ICEfaces
  2. ICE-8834

NPE thrown in CommandLinkRenderer.getJavascriptHiddenFieldSetters()

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: EE-1.8.2.GA_P05
    • Fix Version/s: EE-1.8.2.GA_P06
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All
    • Salesforce Case Reference:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Initialize the param value to a non-null value.

      Description

      If null is returned for a f:param value in an ice:commandLink, a NPE is thrown. This due to the changes made in ICE-8415.

      Caused by: java.lang.NullPointerException
      at com.icesoft.faces.renderkit.dom_html_basic.CommandLinkRenderer.getJavascriptHiddenFieldSetters(CommandLinkRenderer.java:210)
      at com.icesoft.faces.component.ext.renderkit.CommandLinkRenderer.getJavaScriptOnClickString(CommandLinkRenderer.java:87)
      at com.icesoft.faces.component.ext.renderkit.CommandLinkRenderer.renderOnClick(CommandLinkRenderer.java:69)
      at com.icesoft.faces.renderkit.dom_html_basic.CommandLinkRenderer.encodeBegin(CommandLinkRenderer.java:121)
      at com.icesoft.faces.component.ext.renderkit.CommandLinkRenderer.encodeBegin(CommandLinkRenderer.java:50)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:515)
      at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:355)
      at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:364)
      at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:364)
      at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:364)
      at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:364)
      at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:364)
      at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:95)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527)
      at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:490)
      1. ice-8834.patch
        1 kB
        Deryk Sinotte

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #32866 Wed Dec 19 09:53:46 MST 2012 deryk.sinotte ICE-8834: guard against null f:param values
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/renderkit/dom_html_basic/CommandLinkRenderer.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #32865 Wed Dec 19 09:53:11 MST 2012 deryk.sinotte ICE-8834: guard against null f:param values
        Files Changed
        Commit graph MODIFY /icefaces3/branches/icefaces-3.0.x-maintenance/icefaces/compat/core/src/main/java/com/icesoft/faces/renderkit/dom_html_basic/CommandLinkRenderer.java

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: