Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-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 9996E18633 for ; Wed, 23 Sep 2015 13:17:11 +0000 (UTC) Received: (qmail 89305 invoked by uid 500); 23 Sep 2015 13:17:11 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 89251 invoked by uid 500); 23 Sep 2015 13:17:11 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 89239 invoked by uid 99); 23 Sep 2015 13:17:10 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2015 13:17:10 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CA0E7E05E3; Wed, 23 Sep 2015 13:17:10 +0000 (UTC) From: borisroman To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org Message-ID: Subject: [GitHub] cloudstack pull request: [4.6][BLOCKER]CLOUDSTACK-8890: Added isEm... Content-Type: text/plain Date: Wed, 23 Sep 2015 13:17:10 +0000 (UTC) GitHub user borisroman opened a pull request: https://github.com/apache/cloudstack/pull/878 [4.6][BLOCKER]CLOUDSTACK-8890: Added isEmpty() check to prevent nullPointerException. Check if the list is empty before trying to get the first entry. If the list is empty, in example when dealing with projects, it will user the caller user id. Tests to verify working order: 1. Deploy ACS 2. Create project 3. Create resource in project -> Should succeed! You can merge this pull request into a Git repository by running: $ git pull https://github.com/borisroman/cloudstack CLOUDSTACK-8890 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/878.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #878 ---- commit 80cb3adad079be639331046f844b34a69079c224 Author: Boris Schrijver Date: 2015-09-23T13:01:03Z Added isEmpty() check to prevent nullPointerException. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---