roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r546305 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldPageHelper.java
Date Mon, 11 Jun 2007 22:19:31 GMT
Author: agilliland
Date: Mon Jun 11 15:19:30 2007
New Revision: 546305

URL: http://svn.apache.org/viewvc?view=rev&rev=546305
Log:
fixing NPE thrown when roller session is null.


Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldPageHelper.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldPageHelper.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldPageHelper.java?view=diff&rev=546305&r1=546304&r2=546305
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldPageHelper.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/ui/rendering/velocity/deprecated/OldPageHelper.java
Mon Jun 11 15:19:30 2007
@@ -139,7 +139,7 @@
         try {
             RollerSession rses =
                     RollerSession.getRollerSession(mRequest);
-            if ( rses.getAuthenticatedUser() != null
+            if ( rses != null && rses.getAuthenticatedUser() != null
                     && mWebsite != null) {
                 return rses.isUserAuthorizedToAdmin(mWebsite);
             }



Mime
View raw message