myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Travis <jtra...@p00p.org>
Subject Re: [jira] Created: (MYFACES-149) NullPointerException in "_SharedRendererUtils.getConvertedUISelectManyValue"
Date Wed, 06 Apr 2005 01:43:08 GMT
I've applied this patch to my local tree, since I have
the same problem.

Has this fallen off the table?

-- Jon


On Mar 29, 2005, at 1:14 AM, Jochen Schwörer (JIRA) wrote:

> 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
>
>
> When no selection is made in the selection list the following  
> exception occures:
>
> java.lang.NullPointerException
> 	 
> org.apache.myfaces.renderkit._SharedRendererUtils.getConvertedUISelectM 
> anyValue(_SharedRendererUtils.java:183)
> 	 
> org.apache.myfaces.renderkit.RendererUtils.getConvertedUISelectManyValu 
> e(RendererUtils.java:792)
> 	 
> org.apache.myfaces.renderkit.html.HtmlListboxRendererBase.getConvertedV 
> alue(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(Lifecycle 
> Impl.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(Extens 
> ionsFilter.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
> -
> If you want more information on JIRA, or have a bug to report see:
>    http://www.atlassian.com/software/jira
>
>
>



Mime
View raw message