Fix NPE in tests

Signed-off-by: karuppayya <karuppayya1990@gmail.com>
This commit is contained in:
karuppayya 2016-11-22 10:42:37 +05:30 committed by Karup
parent 3d9a5733c0
commit e2cd4db021

View file

@ -172,7 +172,9 @@ public class SparkInterpreter extends Interpreter {
RemoteEventClientWrapper eventClient = ZeppelinContext.getEventClient();
Map<String, String> infos = new java.util.HashMap<>();
infos.put("jobUrl", jobUrl);
eventClient.onParaInfosReceived(noteId, paragraphId, infos);
if (eventClient != null) {
eventClient.onParaInfosReceived(noteId, paragraphId, infos);
}
}
}