[ http://issues.apache.org/jira/browse/MYFACES-149?page=all ]
     
sean schofield closed MYFACES-149:
----------------------------------


> NullPointerException in "_SharedRendererUtils.getConvertedUISelectManyValue"
> ----------------------------------------------------------------------------
>
>          Key: MYFACES-149
>          URL: http://issues.apache.org/jira/browse/MYFACES-149
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>  Environment: Tomcat 5.5.9
> JDK 1.5.0_01-b08
>     Reporter: Jochen Schw�rer
>     Assignee: Manfred Geiler
>      Fix For: 1.0.9 beta

>
> When no selection is made in the selection list the following exception 
> occures:
> java.lang.NullPointerException
>       
> org.apache.myfaces.renderkit._SharedRendererUtils.getConvertedUISelectManyValue(_SharedRendererUtils.java:183)
>       
> org.apache.myfaces.renderkit.RendererUtils.getConvertedUISelectManyValue(RendererUtils.java:792)
>       
> org.apache.myfaces.renderkit.html.HtmlListboxRendererBase.getConvertedValue(HtmlListboxRendererBase.java:143)
>       
> javax.faces.component.UISelectMany.getConvertedValue(UISelectMany.java:295)
>       javax.faces.component.UIInput.validate(UIInput.java:291)
>       javax.faces.component.UISelectMany.validate(UISelectMany.java:284)
>       javax.faces.component.UIInput.processValidators(UIInput.java:166)
>       javax.faces.component.UIForm.processValidators(UIForm.java:66)
>       
> javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:418)
>       javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:162)
>       
> org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:208)
>       
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:92)
>       javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
>       
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:115)
>      
> I fixed it by adding the following code to the beginning of 
> _SharedRendererUtils.getConvertedUISelectManyValue() in both places 
> (javax.faces.component and org.apache.myfaces.renderkit)
> <code>
> if (submittedValue == null)
> {
>     return submittedValue;
> }
> </code>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to