Commit 5d40ba74 authored by Florian's avatar Florian

fixed when service crashed during/after a detection and no choice was taken

parent 22e7b7d8
......@@ -139,7 +139,12 @@ public class Location {
public double[] getDetectedDBEntry(){
if(positionLatest[0]==detectedSignalPosition[0]&&positionLatest[1]==detectedSignalPosition[1]){
detectedSignalPosition = locationData.getDetectedLocation();
if(locationData!=null) {
detectedSignalPosition = locationData.getDetectedLocation();
}else{
detectedSignalPosition[0] = 0;
detectedSignalPosition[1] = 0;
}
}
return detectedSignalPosition;
}
......
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