Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 44157 invoked from network); 12 Sep 2010 17:40:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Sep 2010 17:40:12 -0000 Received: (qmail 67594 invoked by uid 500); 12 Sep 2010 17:40:12 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 67535 invoked by uid 500); 12 Sep 2010 17:40:12 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 67528 invoked by uid 99); 12 Sep 2010 17:40:11 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 17:40:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Sep 2010 17:39:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 58A9623889D5; Sun, 12 Sep 2010 17:39:33 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r996346 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java Date: Sun, 12 Sep 2010 17:39:33 -0000 To: commits@directory.apache.org From: kayyagari@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100912173933.58A9623889D5@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kayyagari Date: Sun Sep 12 17:39:32 2010 New Revision: 996346 URL: http://svn.apache.org/viewvc?rev=996346&view=rev Log: o fixed a NPE which will arise when replication is not enabled Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?rev=996346&r1=996345&r2=996346&view=diff ============================================================================== --- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java (original) +++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java Sun Sep 12 17:39:32 2010 @@ -153,7 +153,7 @@ public class DefaultPartitionNexus exten final List mods = new ArrayList( 2 ); - private String lastSyncedCtxCsn = ""; + private String lastSyncedCtxCsn = null; /** @@ -445,7 +445,7 @@ public class DefaultPartitionNexus exten try { // update only if the CSN changes - if ( !lastSyncedCtxCsn.equals( directoryService.getContextCsn() ) ) + if ( ( lastSyncedCtxCsn != null ) && !lastSyncedCtxCsn.equals( directoryService.getContextCsn() ) ) { lastSyncedCtxCsn = directoryService.getContextCsn();