Madan Jampani

ONOS-2157: Fix NPE in Transaction execution logic

Change-Id: I55a73a82d5ba95407c451a7dd95832442625b994
......@@ -312,7 +312,7 @@ public class PartitionedDatabase implements Database {
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);
......