Fixing NPE.
Change-Id: Icc991a49308fb335102796e2c4782af8bee3ef6c
Showing
1 changed file
with
2 additions
and
1 deletions
| ... | @@ -26,6 +26,7 @@ import org.apache.felix.scr.annotations.Property; | ... | @@ -26,6 +26,7 @@ import org.apache.felix.scr.annotations.Property; |
| 26 | import org.apache.felix.scr.annotations.Reference; | 26 | import org.apache.felix.scr.annotations.Reference; |
| 27 | import org.apache.felix.scr.annotations.ReferenceCardinality; | 27 | import org.apache.felix.scr.annotations.ReferenceCardinality; |
| 28 | import org.onlab.packet.Ethernet; | 28 | import org.onlab.packet.Ethernet; |
| 29 | +import org.onlab.util.SharedExecutors; | ||
| 29 | import org.onlab.util.Tools; | 30 | import org.onlab.util.Tools; |
| 30 | import org.onosproject.cfg.ComponentConfigService; | 31 | import org.onosproject.cfg.ComponentConfigService; |
| 31 | import org.onosproject.cluster.ClusterMetadata; | 32 | import org.onosproject.cluster.ClusterMetadata; |
| ... | @@ -784,7 +785,7 @@ public class LldpLinkProvider extends AbstractProvider implements LinkProvider { | ... | @@ -784,7 +785,7 @@ public class LldpLinkProvider extends AbstractProvider implements LinkProvider { |
| 784 | 785 | ||
| 785 | @Override | 786 | @Override |
| 786 | public void event(NetworkConfigEvent event) { | 787 | public void event(NetworkConfigEvent event) { |
| 787 | - executor.submit(() -> { | 788 | + SharedExecutors.getSingleThreadExecutor().execute(() -> { |
| 788 | if (event.configClass() == LinkDiscoveryFromDevice.class && | 789 | if (event.configClass() == LinkDiscoveryFromDevice.class && |
| 789 | CONFIG_CHANGED.contains(event.type())) { | 790 | CONFIG_CHANGED.contains(event.type())) { |
| 790 | 791 | ... | ... |
-
Please register or login to post a comment