Fix NPE when clean up SingleSwitchFibInstaller

interfaces can be null if no interface config is provided

Change-Id: I67f94f78ef1fb4536e5bbc940be6216e2699f2fe
This commit is contained in:
Charles Chan 2016-12-03 22:40:36 -08:00 committed by Jonathan Hart
parent db46ab39e7
commit 14ed0b65f3

View File

@ -282,7 +282,7 @@ public class SingleSwitchFibInstaller {
private Set<Interface> getInterfaces() {
Set<Interface> intfs;
if (interfaces.isEmpty()) {
if (interfaces == null || interfaces.isEmpty()) {
intfs = interfaceService.getInterfaces();
} else {
// TODO need to fix by making interface names globally unique