roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r462508 - /incubator/roller/trunk/src/org/apache/roller/pojos/WeblogEntryData.java
Date Tue, 10 Oct 2006 19:23:06 GMT
Author: snoopdave
Date: Tue Oct 10 12:23:05 2006
New Revision: 462508

URL: http://svn.apache.org/viewvc?view=rev&rev=462508
Log:
fixing bug I just introduced in anchor creation

Modified:
    incubator/roller/trunk/src/org/apache/roller/pojos/WeblogEntryData.java

Modified: incubator/roller/trunk/src/org/apache/roller/pojos/WeblogEntryData.java
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/src/org/apache/roller/pojos/WeblogEntryData.java?view=diff&rev=462508&r1=462507&r2=462508
==============================================================================
--- incubator/roller/trunk/src/org/apache/roller/pojos/WeblogEntryData.java (original)
+++ incubator/roller/trunk/src/org/apache/roller/pojos/WeblogEntryData.java Tue Oct 10 12:23:05
2006
@@ -1102,7 +1102,7 @@
         
         // Use title or text for base anchor
         String base = getTitle();
-        if (base != null) {
+        if (StringUtils.isEmpty(base.trim())) {
             base = Utilities.replaceNonAlphanumeric(base, ' ');
             if (StringUtils.isEmpty(base.trim())) {
                 base = getText();
@@ -1112,7 +1112,7 @@
             }
         }
 
-        if (StringUtils.isEmpty(base.trim())) {
+        if (!StringUtils.isEmpty(base.trim())) {
             
             // Use only the first 4 words
             StringTokenizer toker = new StringTokenizer(base);



Mime
View raw message