You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/09/07 22:36:50 UTC

svn commit: r441215 - /incubator/roller/branches/roller_3.0/src/org/apache/roller/util/URLUtilities.java

Author: agilliland
Date: Thu Sep  7 13:36:50 2006
New Revision: 441215

URL: http://svn.apache.org/viewvc?view=rev&rev=441215
Log:
catch potential null pointer if entryAnchor is null.


Modified:
    incubator/roller/branches/roller_3.0/src/org/apache/roller/util/URLUtilities.java

Modified: incubator/roller/branches/roller_3.0/src/org/apache/roller/util/URLUtilities.java
URL: http://svn.apache.org/viewvc/incubator/roller/branches/roller_3.0/src/org/apache/roller/util/URLUtilities.java?view=diff&rev=441215&r1=441214&r2=441215
==============================================================================
--- incubator/roller/branches/roller_3.0/src/org/apache/roller/util/URLUtilities.java (original)
+++ incubator/roller/branches/roller_3.0/src/org/apache/roller/util/URLUtilities.java Thu Sep  7 13:36:50 2006
@@ -107,7 +107,7 @@
                                                  String entryAnchor,
                                                  boolean absolute) {
         
-        if(weblog == null) {
+        if(weblog == null || entryAnchor == null) {
             return null;
         }