Index: trunk/MagicSoft/Cosy/main/MStarguider.cc
===================================================================
--- trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 4256)
+++ trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 4357)
@@ -904,5 +904,5 @@
     // Check wheter star found
     Led *star = (Led*)leds.At(0);
-    if (!star)
+    if (!star || leds.GetEntries()<1)
         return;
 
@@ -993,4 +993,6 @@
     *fOutTp << " " << -dzd << " " << -daz;
     *fOutTp << " " << setprecision(11) << t.GetMjd();
+    *fOutTp << " " << setprecision(4) << center.GetMag();
+    *fOutTp << " " << star->GetMag();
     *fOutTp << endl;
 
