You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2017/07/23 02:41:18 UTC
[10/23] curator git commit: Doh - wasn't checking for null on
debugCount
Doh - wasn't checking for null on debugCount
Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/329729a6
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/329729a6
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/329729a6
Branch: refs/heads/master
Commit: 329729a6e03959fcf7eef3546562a555889c8ab7
Parents: 7b780b5
Author: randgalt <ra...@apache.org>
Authored: Fri Jul 21 11:47:23 2017 -0500
Committer: randgalt <ra...@apache.org>
Committed: Fri Jul 21 11:47:23 2017 -0500
----------------------------------------------------------------------
.../org/apache/curator/x/async/migrations/MigrationManager.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/curator/blob/329729a6/curator-x-async/src/main/java/org/apache/curator/x/async/migrations/MigrationManager.java
----------------------------------------------------------------------
diff --git a/curator-x-async/src/main/java/org/apache/curator/x/async/migrations/MigrationManager.java b/curator-x-async/src/main/java/org/apache/curator/x/async/migrations/MigrationManager.java
index e51f0e4..55c12a8 100644
--- a/curator-x-async/src/main/java/org/apache/curator/x/async/migrations/MigrationManager.java
+++ b/curator-x-async/src/main/java/org/apache/curator/x/async/migrations/MigrationManager.java
@@ -191,7 +191,10 @@ public class MigrationManager
private CompletionStage<Void> applyMetaDataAfterEnsure(List<Migration> toBeApplied, String thisMetaDataPath)
{
- debugCount.incrementAndGet();
+ if ( debugCount != null )
+ {
+ debugCount.incrementAndGet();
+ }
List<CuratorOp> operations = new ArrayList<>();
String metaDataBasePath = ZKPaths.makePath(thisMetaDataPath, META_DATA_NODE_NAME);