Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-130

x:selectManyCheckbox , if is not items selected, i have NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1.0
    • None
    • None
    • None
    • myfaces 1.0.9 from CVS, tomcat 5.0.28, jre 1.5

    Description

      java.lang.NullPointerException
      at org.apache.myfaces.renderkit._SharedRendererUtils.getConvertedUISelectManyValue(_SharedRendererUtils.java:118)
      at org.apache.myfaces.renderkit.RendererUtils.getConvertedUISelectManyValue(RendererUtils.java:792)
      at org.apache.myfaces.renderkit.html.HtmlCheckboxRendererBase.getConvertedValue(HtmlCheckboxRendererBase.java:260)
      at javax.faces.component.UISelectMany.getConvertedValue(UISelectMany.java:296)
      at javax.faces.component.UIInput.validate(UIInput.java:291)
      at javax.faces.component.UISelectMany.validate(UISelectMany.java:285)
      at javax.faces.component.UIInput.processValidators(UIInput.java:166)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
      at javax.faces.component.UIForm.processValidators(UIForm.java:66)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
      at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
      at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:162)

      I have checked and error was on file _SharedRendererUtils.java:118
      int len = submittedValue.length;
      Is ok to be null ?

      Cristi

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              grigoras_cristinel Grigoras Cristinel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: