commit | 98166f9c4b3e7e1111992963ccf0f48a2bbe9f9f | [log] [tgz] |
---|---|---|
author | Madan Jampani <madan@onlab.us> | Fri Jun 26 15:12:33 2015 -0700 |
committer | Madan Jampani <madan@onlab.us> | Fri Jun 26 15:12:33 2015 -0700 |
tree | c8d19d5521560167a258ab3d65627e4a904ca277 | |
parent | caf1ca2b1d9d9d4575de097fd6d083c33ae7ad8a [diff] |
ONOS-2157: Fix NPE in Transaction execution logic Change-Id: I55a73a82d5ba95407c451a7dd95832442625b994
diff --git a/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/PartitionedDatabase.java b/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/PartitionedDatabase.java index 083ca86..c19bccd 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/PartitionedDatabase.java +++ b/core/store/dist/src/main/java/org/onosproject/store/consistent/impl/PartitionedDatabase.java
@@ -312,7 +312,7 @@ subTransactions.entrySet().iterator().next(); return entry.getKey().prepareAndCommit(entry.getValue()); } else { - if (transactionManager != null) { + if (transactionManager == null) { throw new IllegalStateException("TransactionManager is not initialized"); } return transactionManager.execute(transaction);