cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1496085 - /cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java
Date Mon, 24 Jun 2013 15:15:50 GMT
Author: dkulp
Date: Mon Jun 24 15:15:50 2013
New Revision: 1496085

URL: http://svn.apache.org/r1496085
Log:
Add an NPE guard (patch from chirino)

Modified:
    cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java

Modified: cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java
URL: http://svn.apache.org/viewvc/cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java?rev=1496085&r1=1496084&r2=1496085&view=diff
==============================================================================
--- cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java (original)
+++ cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java Mon Jun 24 15:15:50 2013
@@ -92,7 +92,7 @@ import org.ccil.cowan.tagsoup.XMLWriter;
  */
 public class SiteExporter implements Runnable {
 
-    static final String HOST = "https://cwiki.apache.org";
+    static final String HOST = "https://cwiki2.apache.org";
     static final String ROOT = HOST + "/confluence";
     static final String RPC_ROOT = "/rpc/soap-axis/confluenceservice-v";
     static final String SOAPNS = "http://soap.rpc.confluence.atlassian.com";
@@ -249,6 +249,7 @@ public class SiteExporter implements Run
         //forcePage("Index");
         //forcePage("JavaDoc");
         //forcePage("DOSGi Architecture");
+        forcePage("Book In One Page");
         
         if (modifiedPages.isEmpty() && checkRSS()) {
             System.out.println("(" + spaceKey + ") No changes detected from RSS");
@@ -748,6 +749,9 @@ public class SiteExporter implements Run
     }
 
     public String unwrap(String v) throws Exception {
+        if (v == null) {
+            return null;
+        }
         return v.trim().replaceFirst("^<div[^>]*>", "").replaceFirst("</div>$",
"");
     }
 



Mime
View raw message