Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1829

setItemLabelConverter cause NullPointerException in Eclipse

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.0.Final
    • None
    • UI - Eclipse
    • None

    Description

            containerAdapter.setItemLabelConverter(new Converter<Container, String>() {
               @Override
               public String convert(Container source) {
                  return source.getId();
               }
            });
      

      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.

      Attachments

        Activity

          People

            rhn-support-ggastald George Gastaldi
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: