check if note config null.

This commit is contained in:
astroshim 2015-11-30 19:50:04 +09:00
parent dbd2d03905
commit fe8d5eb7c5

View file

@ -341,6 +341,7 @@ public class Note implements Serializable, JobListener {
if (intp == null) {
throw new InterpreterException("Interpreter " + p.getRequiredReplName() + " not found");
}
logger.info("run note paragraphId={}, p={}, p.getConfig()={}", paragraphId, p, p.getConfig());
if ((Boolean) p.getConfig().get("enabled")) {
intp.getScheduler().submit(p);
}