Return-Path: X-Original-To: apmail-cordova-commits-archive@www.apache.org Delivered-To: apmail-cordova-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F16B116B9 for ; Wed, 20 Aug 2014 14:40:20 +0000 (UTC) Received: (qmail 17246 invoked by uid 500); 20 Aug 2014 14:39:59 -0000 Delivered-To: apmail-cordova-commits-archive@cordova.apache.org Received: (qmail 17232 invoked by uid 500); 20 Aug 2014 14:39:59 -0000 Mailing-List: contact commits-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list commits@cordova.apache.org Received: (qmail 17219 invoked by uid 99); 20 Aug 2014 14:39:59 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Aug 2014 14:39:59 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 8211E9546C1; Wed, 20 Aug 2014 14:39:59 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: agrieve@apache.org To: commits@cordova.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: git commit: ffos: Make author url optional Date: Wed, 20 Aug 2014 14:39:59 +0000 (UTC) Repository: cordova-lib Updated Branches: refs/heads/master ade65450f -> 38e04e1fc ffos: Make author url optional github: close #74 Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/38e04e1f Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/38e04e1f Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/38e04e1f Branch: refs/heads/master Commit: 38e04e1fc5ae207a882fbce585d698ad1cf55afa Parents: ade6545 Author: Rodrigo Silveira Authored: Tue Aug 19 12:12:59 2014 -0700 Committer: Andrew Grieve Committed: Wed Aug 20 10:39:36 2014 -0400 ---------------------------------------------------------------------- cordova-lib/src/cordova/metadata/firefoxos_parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/38e04e1f/cordova-lib/src/cordova/metadata/firefoxos_parser.js ---------------------------------------------------------------------- diff --git a/cordova-lib/src/cordova/metadata/firefoxos_parser.js b/cordova-lib/src/cordova/metadata/firefoxos_parser.js index 0ec5b6d..e3f4818 100644 --- a/cordova-lib/src/cordova/metadata/firefoxos_parser.js +++ b/cordova-lib/src/cordova/metadata/firefoxos_parser.js @@ -61,7 +61,7 @@ module.exports.prototype = { }; var authorNode = config.doc.find('author'); - var authorUrl = authorNode.attrib['href']; + var authorUrl = authorNode && authorNode.attrib['href']; if (authorUrl) { manifest.developer.url = authorUrl;