svn commit: r571481 - /lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/ac/usecases/SessionViewer.java

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: rfrovarp
Date: Fri Aug 31 07:38:12 2007
New Revision: 571481

URL: http://svn.apache.org/viewvc?rev=571481&view=rev
Log:
Will hopefully fix bug 42370

Modified:
    lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/ac/usecases/SessionViewer.java

Modified: lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/ac/usecases/SessionViewer.java
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/ac/usecases/SessionViewer.java?rev=571481&r1=571480&r2=571481&view=diff
==============================================================================
--- lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/ac/usecases/SessionViewer.java (original)
+++ lenya/trunk/src/modules-core/administration/java/src/org/apache/lenya/cms/ac/usecases/SessionViewer.java Fri Aug 31 07:38:12 2007
@@ -63,7 +63,11 @@
             HttpSession nextsession = (HttpSession) entry.getValue();
 
             Identity identity = (Identity) nextsession.getAttribute(IDENTITY);
-
+            
+            if(identity == null) { 
+                continue;
+            }   
+          
             User user = identity.getUser();
             if (user != null) {
                 Vector history = (Vector) nextsession.getAttribute(HISTORY);
@@ -98,4 +102,4 @@
         URLInformation info = new URLInformation(getSourceURL());
         return info.getPublicationId();
     }
-}
\ No newline at end of file
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.