Index: trunk/MagicSoft/Cosy/catalog/SaoFile.cc
===================================================================
--- trunk/MagicSoft/Cosy/catalog/SaoFile.cc	(revision 740)
+++ trunk/MagicSoft/Cosy/catalog/SaoFile.cc	(revision 748)
@@ -66,4 +66,7 @@
 {
     file = new File(name, "r");
+
+    if (!*file)
+        exit(0);
 
     compressed = !strcasecmp(name+strlen(name)-4, ".cmp");
Index: trunk/MagicSoft/Cosy/catalog/StarCatalog.cc
===================================================================
--- trunk/MagicSoft/Cosy/catalog/StarCatalog.cc	(revision 740)
+++ trunk/MagicSoft/Cosy/catalog/StarCatalog.cc	(revision 748)
@@ -28,5 +28,9 @@
     // read index file
     //
-    File idx("sao-sort.idx", "r");
+    File idx("sao/sao-sort.idx", "r");
+
+    if (!idx)
+        exit(0);
+
     while (!idx.Eof())
     {
@@ -50,5 +54,5 @@
     // open catalog
     //
-    fSao = new SaoFile("sao-sort.cmp");
+    fSao = new SaoFile("sao/sao-sort.cmp");
 }
 
