[forge-issues] [JBoss JIRA] (FORGE-1829) setItemLabelConverter cause NullPointerException in Eclipse
George Gastaldi (JIRA)
issues at jboss.org
Mon Jun 30 11:38:25 EDT 2014
[ https://issues.jboss.org/browse/FORGE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi updated FORGE-1829:
-----------------------------------
Fix Version/s: 2.x Future
> setItemLabelConverter cause NullPointerException in Eclipse
> -----------------------------------------------------------
>
> Key: FORGE-1829
> URL: https://issues.jboss.org/browse/FORGE-1829
> Project: Forge
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: UI - Eclipse
> Reporter: Aslak Knutsen
> Fix For: 2.x Future
>
>
> {code}
> containerAdapter.setItemLabelConverter(new Converter<Container, String>() {
> @Override
> public String convert(Container source) {
> return source.getId();
> }
> });
> {code}
> In Eclipse, the Converter is called with a "null" argument during Step/Command initialization. Unless the user specifically checks for null a NullPointerException is thrown.
> This is especially odd in the case where the user provide a Set of ValueChoices to convert and none of those are null.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
More information about the forge-issues
mailing list