Index: /trunk/Mars/mbase/MStatusArray.cc
===================================================================
--- /trunk/Mars/mbase/MStatusArray.cc	(revision 13116)
+++ /trunk/Mars/mbase/MStatusArray.cc	(revision 13117)
@@ -619,4 +619,11 @@
 
     // Check if key exists (to suppress an error on the console
+    if (!gDirectory->GetListOfKeys())
+    {
+        gLog << inf << keyname << " [MStatusArray] not found (no open file?)" << endl;
+        return 0;
+    }
+
+    // Check if key exists (to suppress an error on the console
     if (!gDirectory->GetListOfKeys()->FindObject(keyname))
     {
