You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jochen Schwörer (JIRA)" <in...@incubator.apache.org> on 2005/03/29 11:14:16 UTC

[jira] Created: (MYFACES-149) NullPointerException in "_SharedRendererUtils.getConvertedUISelectManyValue"

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.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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Re: [jira] Created: (MYFACES-149) NullPointerException in "_SharedRendererUtils.getConvertedUISelectManyValue"

Posted by Jochen Schwörer <j....@web.de>.
Please ignore my latest comment.
I got the additional mails just after hitting the submit button ;)

Jochen

Jochen Schwörer wrote:
> You fixed the code by adding the following code
> <code>
> if (submittedValue == null) throw new 
> NullPointerException("submittedValue");
> </code>
> 
> May be I am wrong, but I do not see how this will resolve the problem 
> since there will be still a NullPointerException when no value is 
> submitted by the request.
> 
> regards
> Jochen
> 
> 
> Manfred Geiler wrote:
> 
>> fixed
>> http://issues.apache.org/jira/browse/MYFACES-149
>>
>> On Apr 6, 2005 11:43 AM, Jochen Schwörer <j....@web.de> wrote:
>>
>>> I've just checked the latest nightly build myfaces-20050405-src.tgz and
>>> the problem is not resolved.
>>> I'd like to see this bug fixed in the next RC.
>>>
>>> Jochen
>>>
>>> Jon Travis wrote:
>>>
>>>> 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
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>
> 

Re: [jira] Created: (MYFACES-149) NullPointerException in "_SharedRendererUtils.getConvertedUISelectManyValue"

Posted by Jochen Schwörer <j....@web.de>.
You fixed the code by adding the following code
<code>
if (submittedValue == null) throw new 
NullPointerException("submittedValue");
</code>

May be I am wrong, but I do not see how this will resolve the problem 
since there will be still a NullPointerException when no value is 
submitted by the request.

regards
Jochen


Manfred Geiler wrote:
> fixed
> http://issues.apache.org/jira/browse/MYFACES-149
> 
> On Apr 6, 2005 11:43 AM, Jochen Schwörer <j....@web.de> wrote:
> 
>>I've just checked the latest nightly build myfaces-20050405-src.tgz and
>>the problem is not resolved.
>>I'd like to see this bug fixed in the next RC.
>>
>>Jochen
>>
>>Jon Travis wrote:
>>
>>>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
>>>>
>>>>
>>>>
>>>
>>>
>>>
> 

Re: [jira] Created: (MYFACES-149) NullPointerException in "_SharedRendererUtils.getConvertedUISelectManyValue"

Posted by Manfred Geiler <ma...@gmail.com>.
fixed
http://issues.apache.org/jira/browse/MYFACES-149

On Apr 6, 2005 11:43 AM, Jochen Schwörer <j....@web.de> wrote:
> I've just checked the latest nightly build myfaces-20050405-src.tgz and
> the problem is not resolved.
> I'd like to see this bug fixed in the next RC.
> 
> Jochen
> 
> Jon Travis wrote:
> > 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
> >>
> >>
> >>
> >
> >
> >
>

Re: [jira] Created: (MYFACES-149) NullPointerException in "_SharedRendererUtils.getConvertedUISelectManyValue"

Posted by Jochen Schwörer <j....@web.de>.
I've just checked the latest nightly build myfaces-20050405-src.tgz and 
the problem is not resolved.
I'd like to see this bug fixed in the next RC.

Jochen

Jon Travis wrote:
> 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
>>
>>
>>
> 
> 
> 

Re: [jira] Created: (MYFACES-149) NullPointerException in "_SharedRendererUtils.getConvertedUISelectManyValue"

Posted by Jon Travis <jt...@p00p.org>.
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
>
>
>



[jira] Commented: (MYFACES-149) NullPointerException in "_SharedRendererUtils.getConvertedUISelectManyValue"

Posted by "Manfred Geiler (JIRA)" <in...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-149?page=comments#action_62259 ]
     
Manfred Geiler commented on MYFACES-149:
----------------------------------------

Fixed, but slightly different than proposed:
All callers of _SharedRendererUtils.getConvertedUISelectManyValue where modified, such that the submittedValue cannot be null.


> 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
>      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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (MYFACES-149) NullPointerException in "_SharedRendererUtils.getConvertedUISelectManyValue"

Posted by "Manfred Geiler (JIRA)" <in...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-149?page=history ]
     
Manfred Geiler resolved MYFACES-149:
------------------------------------

      Assign To: Manfred Geiler
     Resolution: Fixed
    Fix Version: 1.0.9 beta

> 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira