Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 19916200D41 for ; Wed, 22 Nov 2017 23:56:33 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1887E160BFD; Wed, 22 Nov 2017 22:56:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 56931160BEC for ; Wed, 22 Nov 2017 23:56:32 +0100 (CET) Received: (qmail 52067 invoked by uid 500); 22 Nov 2017 22:56:31 -0000 Mailing-List: contact commits-help@community.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@community.apache.org Delivered-To: mailing list commits@community.apache.org Received: (qmail 52058 invoked by uid 99); 22 Nov 2017 22:56:31 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Nov 2017 22:56:31 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 1996B3A0223 for ; Wed, 22 Nov 2017 22:56:29 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1816090 - /comdev/projects.apache.org/site/js/projects.js Date: Wed, 22 Nov 2017 22:56:26 -0000 To: commits@community.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20171122225630.1996B3A0223@svn01-us-west.apache.org> archived-at: Wed, 22 Nov 2017 22:56:33 -0000 Author: sebb Date: Wed Nov 22 22:56:26 2017 New Revision: 1816090 URL: http://svn.apache.org/viewvc?rev=1816090&view=rev Log: Handle DOAP with incorrect pmc reference Modified: comdev/projects.apache.org/site/js/projects.js Modified: comdev/projects.apache.org/site/js/projects.js URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/projects.js?rev=1816090&r1=1816089&r2=1816090&view=diff ============================================================================== --- comdev/projects.apache.org/site/js/projects.js (original) +++ comdev/projects.apache.org/site/js/projects.js Wed Nov 22 22:56:26 2017 @@ -305,6 +305,10 @@ function renderProjectPage(project, proj } } var committee = committees[committeeId]; + if (!committee) { + obj.innerHTML = "

Cannot find the PMC '" + committeeId + "' for this project. Check the DOAP is correct.

"; + return; + } // Start by splitting the name, thus fetching the root name of the project, and not the sub-project. var description = "";