[seam-issues] [JBoss JIRA] Resolved: (SEAMINTL-32) NPEs in ApplicationBundles.put*
Ken Finnigan (JIRA)
jira-events at lists.jboss.org
Sat Mar 12 22:18:45 EST 2011
[ https://issues.jboss.org/browse/SEAMINTL-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ken Finnigan resolved SEAMINTL-32.
----------------------------------
Resolution: Done
> NPEs in ApplicationBundles.put*
> -------------------------------
>
> Key: SEAMINTL-32
> URL: https://issues.jboss.org/browse/SEAMINTL-32
> Project: Seam International
> Issue Type: Bug
> Components: Messages
> Affects Versions: 3.0.0.CR1
> Reporter: Nicklas Karlsson
> Assignee: Ken Finnigan
> Fix For: 3.0.0.Final
>
>
> If you put something in the bundles with a locale for the first time, bundles.get(locale) is null and we get a NPE.
> public ResourceBundle put(final Locale locale, final String key, final ResourceBundle value)
> {
> return bundles.get(locale).put(key, value);
> }
> public void putAll(final Locale locale, final Map<? extends String, ? extends ResourceBundle> m)
> {
> bundles.get(locale).putAll(m);
> }
> Nested map access need a if(!bundles.containsKey(locale)) + map init
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list