diff --git a/src/simulatedAcquisition/movement/GridMovement.java b/src/simulatedAcquisition/movement/GridMovement.java index ca9b576a..2b8e3c2b 100644 --- a/src/simulatedAcquisition/movement/GridMovement.java +++ b/src/simulatedAcquisition/movement/GridMovement.java @@ -131,7 +131,12 @@ public class GridMovement extends MovementModel implements PamSettings { @Override public String getUnitName() { - return getSimObject().name; + if (getSimObject() != null && getSimObject().name != null) { + return getSimObject().name; + } + else { + return "Unknown"; + } } @Override