Repository: curator Updated Branches: refs/heads/CURATOR-426 7b780b5b0 -> 329729a6e
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/CURATOR-426 Commit: 329729a6e03959fcf7eef3546562a555889c8ab7 Parents: 7b780b5 Author: randgalt <[email protected]> Authored: Fri Jul 21 11:47:23 2017 -0500 Committer: randgalt <[email protected]> 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);
