diff --git a/fsl/fslview/locationpanel.py b/fsl/fslview/locationpanel.py
index 6a19e03b0496cdd980f00d73146350be3772d94a..acfa98aefb001b61de3b2776c1c23701499bfafb 100644
--- a/fsl/fslview/locationpanel.py
+++ b/fsl/fslview/locationpanel.py
@@ -148,6 +148,8 @@ class LocationPanel(wx.Panel, props.HasProperties):
         selected image.
         """
 
+        if len(self.imageList) == 0: return
+
         image  = self.imageList[self.imageList.selectedImage]
         loc    = self.imageList.location.xyz
         voxLoc = image.worldToVox([loc])[0]
@@ -168,6 +170,8 @@ class LocationPanel(wx.Panel, props.HasProperties):
         (which contains the image name), and sets the voxel location limits.
         """
 
+        if len(self.imageList) == 0: return
+
         image = self.imageList[self.imageList.selectedImage]
         
         self._voxelLabel.SetLabel('Voxel coordinates ({})'.format(image.name))