Commit 79eb3283 authored by Andrey Filippov's avatar Andrey Filippov

bypassing no temperature

parent c500f3ad
......@@ -738,8 +738,15 @@ public class CalibrationHardwareInterface {
IJ.showMessage("Error",msg);
throw new IllegalArgumentException (msg);
}
String sTemperature=((Node) (((Node) dom.getDocumentElement().getElementsByTagName("sensorTemperature").item(0)).getChildNodes().item(0))).getNodeValue();
String sTemperature=null;
if ((dom.getDocumentElement().getElementsByTagName("sensorTemperature").item(0))!=null){
sTemperature=((Node) (((Node) dom.getDocumentElement().getElementsByTagName("sensorTemperature").item(0)).getChildNodes().item(0))).getNodeValue();
}else{
sTemperature= "0.0";
}
// remove opening and closing "
if (sTemperature==null){
String msg="Could not read sensor temperature";
......
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