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 37D2018713 for ; Thu, 23 Jul 2015 05:15:12 +0000 (UTC) Received: (qmail 21813 invoked by uid 500); 23 Jul 2015 05:15:11 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 21757 invoked by uid 500); 23 Jul 2015 05:15: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 21742 invoked by uid 99); 23 Jul 2015 05:15:11 -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; Thu, 23 Jul 2015 05:15:11 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 57AB1E03BE; Thu, 23 Jul 2015 05:15:11 +0000 (UTC) From: kishankavala To: dev@cloudstack.apache.org Reply-To: dev@cloudstack.apache.org References: In-Reply-To: Subject: [GitHub] cloudstack pull request: Dereference NULL return value Content-Type: text/plain Message-Id: <20150723051511.57AB1E03BE@git1-us-west.apache.org> Date: Thu, 23 Jul 2015 05:15:11 +0000 (UTC) Github user kishankavala commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/618#discussion_r35290636 --- Diff: plugins/user-authenticators/saml2/src/org/apache/cloudstack/saml/SAML2AuthManagerImpl.java --- @@ -368,8 +368,14 @@ private boolean setup() { _idpMetaDataProvider = new HTTPMetadataProvider(_timer, client, idpMetaDataUrl); } else { File metadataFile = PropertiesUtil.findConfigFile(idpMetaDataUrl); - s_logger.debug("Provided Metadata is not a URL, trying to read metadata file from local path: " + metadataFile.getAbsolutePath()); - _idpMetaDataProvider = new FilesystemMetadataProvider(_timer, metadataFile); + if (metadataFile == null) { + s_logger.error("Metadata file returned null"); --- End diff -- Can you please update the error message: "Provided Metadata is not a URL, Unable to locate metadata file from local path" --- 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. ---