Author: saminda
Date: Tue Jan 22 09:03:53 2008
New Revision: 12691

Log:

Fixed a possible null pointer 


Modified:
   
branches/wsas/java/2.2/wsas/java/modules/admin/src/org/wso2/wsas/admin/service/GlobalAdmin.java

Modified: 
branches/wsas/java/2.2/wsas/java/modules/admin/src/org/wso2/wsas/admin/service/GlobalAdmin.java
==============================================================================
--- 
branches/wsas/java/2.2/wsas/java/modules/admin/src/org/wso2/wsas/admin/service/GlobalAdmin.java
     (original)
+++ 
branches/wsas/java/2.2/wsas/java/modules/admin/src/org/wso2/wsas/admin/service/GlobalAdmin.java
     Tue Jan 22 09:03:53 2008
@@ -264,7 +264,9 @@
             }
             return true;
         } else {
-            sgCtx.removeProperty(ServerConstants.ADMIN_LOGGED_IN);
+            if (sgCtx.getProperty(ServerConstants.ADMIN_LOGGED_IN) != null) {
+                sgCtx.removeProperty(ServerConstants.ADMIN_LOGGED_IN);
+            }
             if (user != null) {
                 log.warn("Failed login attempt by Administrator \'" + username 
+ "\' at " +
                          date.format(currentTime) + " from IP address " + 
remoteIP);

_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to