Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E94610B58 for ; Fri, 14 Feb 2014 16:13:22 +0000 (UTC) Received: (qmail 2628 invoked by uid 500); 14 Feb 2014 16:13:21 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 2492 invoked by uid 500); 14 Feb 2014 16:13:20 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 2483 invoked by uid 99); 14 Feb 2014 16:13:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Feb 2014 16:13:19 +0000 Date: Fri, 14 Feb 2014 16:13:19 +0000 (UTC) From: "Tom Beerbower (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-4679) NPE for View with no instances / resources / parameters. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)