diff --git a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java index 315611eba..497132c87 100644 --- a/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java +++ b/tools/cooja/apps/mspsim/src/se/sics/cooja/mspmote/MspMote.java @@ -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); } }