Commit c2057b85 authored by Locatelli's avatar Locatelli
Browse files

add null ptr test

parent 24d47901
......@@ -180,10 +180,12 @@ public class PlotyInstance {
}
public void closePlots() {
Message messageFirst = DataPlotMessages.Message.newBuilder().
setType(DataPlotMessages.Message.Type.ClosePlots).
build();
plotRequester.send(messageFirst.toByteArray());
if (plotRequester != null) {
Message messageFirst = DataPlotMessages.Message.newBuilder().
setType(DataPlotMessages.Message.Type.ClosePlots).
build();
plotRequester.send(messageFirst.toByteArray());
}
}
public void plot(String controllerName, String plotkey, List<String> key, List<String> legend_key, List<String> color,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment