ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <>
Subject [jira] [Created] (AMBARI-4541) NPE for View instance with no properties.
Date Thu, 06 Feb 2014 00:40:09 GMT
Tom Beerbower created AMBARI-4541:

             Summary: NPE for View instance with no properties.
                 Key: AMBARI-4541
             Project: Ambari
          Issue Type: Bug
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower

The method getProperties()  of the class org.apache.ambari.server.view.configuration.InstanceConfig
returns null if no properties are specified for a view instance.  For example ...

  <label>Some View</label>

Any code consuming the instance configuration will likely NPE.
Better to return an empty list.

This message was sent by Atlassian JIRA

View raw message