mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-18 19:01:06 +02:00
Fix NPE in flow store
Change-Id: If240d2f02c96b3f03398b8ec30a7feb7bb9240b4
This commit is contained in:
parent
b2e6be83e5
commit
0677d88e2d
@ -761,7 +761,8 @@ public class DeviceFlowTable {
|
||||
* Handles an update to a term.
|
||||
*/
|
||||
private void updateTerm(DeviceReplicaInfo replicaInfo) {
|
||||
if (replicaInfo.term() == this.replicaInfo.term()) {
|
||||
DeviceReplicaInfo oldReplicaInfo = this.replicaInfo;
|
||||
if (oldReplicaInfo != null && replicaInfo.term() == oldReplicaInfo.term()) {
|
||||
this.replicaInfo = replicaInfo;
|
||||
|
||||
// If the local node is neither the master or a backup for the device *and the term is active*,
|
||||
|
Loading…
x
Reference in New Issue
Block a user