ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-4679) NPE for View with no instances / resources / parameters.
Date Fri, 14 Feb 2014 16:13:19 GMT
Tom Beerbower created AMBARI-4679:
-------------------------------------

             Summary: NPE for View with no instances / resources / parameters.
                 Key: AMBARI-4679
                 URL: https://issues.apache.org/jira/browse/AMBARI-4679
             Project: Ambari
          Issue Type: Bug
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower


If a view is specified without instances the call to getInstances() on the view configuration
will return null. The calling code is not likely to check for that, resulting in a NullPointerException.
Better to return an empty list. Same is true for resources and parameters.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message