Committed by
Gerrit Code Review
Fix NPE when ControlPlaneConnectPoint config is added after interface config
Change-Id: I31ee1d2e646d4b4c88ac5bb3b661228c893292b9
Showing
1 changed file
with
4 additions
and
1 deletions
| ... | @@ -609,9 +609,12 @@ public class ControlPlaneRedirectManager { | ... | @@ -609,9 +609,12 @@ public class ControlPlaneRedirectManager { |
| 609 | } | 609 | } |
| 610 | 610 | ||
| 611 | private class InternalInterfaceListener implements InterfaceListener { | 611 | private class InternalInterfaceListener implements InterfaceListener { |
| 612 | - | ||
| 613 | @Override | 612 | @Override |
| 614 | public void event(InterfaceEvent event) { | 613 | public void event(InterfaceEvent event) { |
| 614 | + if (controlPlaneConnectPoint == null) { | ||
| 615 | + log.info("Control plane connect point is not configured. Abort InterfaceEvent."); | ||
| 616 | + return; | ||
| 617 | + } | ||
| 615 | Interface intf = event.subject(); | 618 | Interface intf = event.subject(); |
| 616 | Interface prevIntf = event.prevSubject(); | 619 | Interface prevIntf = event.prevSubject(); |
| 617 | switch (event.type()) { | 620 | switch (event.type()) { | ... | ... |
-
Please register or login to post a comment