community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1816090 - /comdev/projects.apache.org/site/js/projects.js
Date Wed, 22 Nov 2017 22:56:26 GMT
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 = "<h2>Cannot find the PMC '" + committeeId + "' for this project.
Check the DOAP is correct.</h2>";
+        return;
+    }
 
     // Start by splitting the name, thus fetching the root name of the project, and not the
sub-project.
     var description = "";



Mime
View raw message