]
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.