lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject svn commit: r1054171 - /lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java
Date Fri, 31 Dec 2010 21:04:42 GMT
Author: andreas
Date: Fri Dec 31 21:04:42 2010
New Revision: 1054171

URL: http://svn.apache.org/viewvc?rev=1054171&view=rev
Log:
Avoid NPE.

Modified:
    lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java

Modified: lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java?rev=1054171&r1=1054170&r2=1054171&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java
(original)
+++ lenya/branches/BRANCH_2_1_X/src/modules/sitetree/java/src/org/apache/lenya/cms/site/tree2/SiteTreeRevisionVerifier.java
Fri Dec 31 21:04:42 2010
@@ -31,7 +31,7 @@ public class SiteTreeRevisionVerifier ex
 
     public void eventFired(RepositoryEvent event) {
         String uri = event.getNodeUri();
-        if (uri.endsWith("/" + SiteTreeImpl.SITETREE_FILE_NAME)) {
+        if (uri != null && uri.endsWith("/" + SiteTreeImpl.SITETREE_FILE_NAME)) {
             // pubs/{pubId}/content/{area}/sitetree.xml
             String[] steps = uri.split("/");
             String pubId = steps[steps.length - 4];



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org


Mime
View raw message