You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Tom Beerbower (JIRA)" <ji...@apache.org> on 2014/02/14 17:13:19 UTC

[jira] [Created] (AMBARI-4679) NPE for View with no instances / resources / parameters.

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)