mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-25 14:21:33 +02:00
Fix for NPE that can get triggered upon onos instance restart.
Change-Id: I9ea9d8d92d43dc0543be0b336ba9bcc856b9bcbc
This commit is contained in:
parent
02a94982b6
commit
15a8178e2e
@ -263,6 +263,9 @@ public class DefaultRoutingHandler {
|
||||
// new ECMPspg calculation as it is not a topology event. As a
|
||||
// result, we use the current/existing ECMPspg in the updated map
|
||||
// used by the redoRouting method.
|
||||
if (updatedEcmpSpgMap == null) {
|
||||
updatedEcmpSpgMap = new HashMap<>();
|
||||
}
|
||||
currentEcmpSpgMap.entrySet().forEach(entry -> {
|
||||
updatedEcmpSpgMap.put(entry.getKey(), entry.getValue());
|
||||
if (log.isDebugEnabled()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user