directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1043090 - /directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
Date Tue, 07 Dec 2010 15:22:52 GMT
Author: kayyagari
Date: Tue Dec  7 15:22:50 2010
New Revision: 1043090

URL: http://svn.apache.org/viewvc?rev=1043090&view=rev
Log:
o added a null check on ReplayCache reference to avoid NPE (tests are using KdcServer as config
so they are not calling the start() method but 
  stop() is called after every test method run which is resulting in a NPE)

Modified:
    directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java

Modified: directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java?rev=1043090&r1=1043089&r2=1043090&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
(original)
+++ directory/apacheds/branches/apacheds-kerberos-codec-2.0/protocol-kerberos/src/main/java/org/apache/directory/server/kerberos/kdc/KdcServer.java
Tue Dec  7 15:22:50 2010
@@ -536,8 +536,11 @@ public class KdcServer extends Directory
                 acceptor.dispose();
             }
         }
-        
-        replayCache.clear();
+
+        if ( replayCache != null )
+        {
+            replayCache.clear();
+        }
         
         LOG.info( "Kerberos service stopped." );
     }



Mime
View raw message