Committed by
Gerrit Code Review
Fixed potential NPE in flow store.
Change-Id: Id4f7887ddf4826f556a62e1a1cd395bc22e882f2
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -745,7 +745,7 @@ public class DistributedFlowRuleStore | ... | @@ -745,7 +745,7 @@ public class DistributedFlowRuleStore |
745 | Sets.difference(deviceFlowEntries.keySet(), backedupDevices); | 745 | Sets.difference(deviceFlowEntries.keySet(), backedupDevices); |
746 | if (devicesNotBackedup.size() > 0) { | 746 | if (devicesNotBackedup.size() > 0) { |
747 | log.warn("Failed to backup devices: {}. Reason: {}", | 747 | log.warn("Failed to backup devices: {}. Reason: {}", |
748 | - devicesNotBackedup, error.getMessage()); | 748 | + devicesNotBackedup, error != null ? error.getMessage() : "none"); |
749 | } | 749 | } |
750 | if (backedupDevices != null) { | 750 | if (backedupDevices != null) { |
751 | backedupDevices.forEach(id -> { | 751 | backedupDevices.forEach(id -> { | ... | ... |
-
Please register or login to post a comment