myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Schulz (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MYFACES-4199) NPE with <f:selectItem>
Date Mon, 12 Feb 2018 17:32:00 GMT

    [ https://issues.apache.org/jira/browse/MYFACES-4199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16361125#comment-16361125
] 

Christoph Schulz commented on MYFACES-4199:
-------------------------------------------

Okay, anyway, this is a quick-fix I could imagine but it's not really worth a patch. :D

I don't even know if that breaks something down the river, didn't look. (Maybe it's just cosmetically
to just not have empty select option labels?)

[^SelectItemsIterator.patch]

 

> NPE with <f:selectItem>
> -----------------------
>
>                 Key: MYFACES-4199
>                 URL: https://issues.apache.org/jira/browse/MYFACES-4199
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.2.11
>         Environment: Debian 9.3 GNU/Linux
> TomEE 7.0.3 Web
> Java OpenJDK 1.0.8_151
>            Reporter: Christoph Schulz
>            Priority: Major
>         Attachments: SelectItemsIterator.patch
>
>
> If a simple {{<f:selectItem/>}} (i.e. without any attributes) is used, it leads
to an {{NullPointerException}} in {{org.apache.myfaces.shared.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:130)}}
because {{itemValue}} is {{null}}.
> I am not sure if this behaviour is intended, but I guess not.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message