Added check if the interface is not available
This commit is contained in:
parent
997baa67d1
commit
d83b461654
|
@ -416,6 +416,10 @@ public abstract class MspMote extends AbstractEmulatedMote implements Mote, Watc
|
|||
}
|
||||
|
||||
MoteInterface moteInterface = getInterfaces().getInterfaceOfType(moteInterfaceClass);
|
||||
if (moteInterface == null) {
|
||||
logger.fatal("Could not find mote interface of class: " + moteInterfaceClass);
|
||||
return false;
|
||||
}
|
||||
moteInterface.setConfigXML(element.getChildren(), visAvailable);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue