Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 5920)
+++ trunk/MagicSoft/Mars/Changelog	(revision 5921)
@@ -21,8 +21,15 @@
                                                  -*-*- END OF LINE -*-*-
 
+ 2005/01/20 Thomas Bretz
+
+   * mpointing/MSrcPosFromModel.cc:
+     - fixed crash in Process if no pointing model available
+
+
+
  2005/01/20 Markus Gaug
 
    * mcalib/MCalibrationIntensityChargeCam.[h,cc] 
-     - added function to display fluyctuations of a variable
+     - added function to display fluctuations of a variable
 
    * mcalib/MCalibrationPix.cc
@@ -31,4 +38,6 @@
    * msignal/MExtractTimeAndCharge.[h,cc]
      - introduced high-gain maximum limit before extracting the low-gain
+
+
 
  2005/01/20 Thomas Bretz
Index: trunk/MagicSoft/Mars/mpointing/MSrcPosFromModel.cc
===================================================================
--- trunk/MagicSoft/Mars/mpointing/MSrcPosFromModel.cc	(revision 5920)
+++ trunk/MagicSoft/Mars/mpointing/MSrcPosFromModel.cc	(revision 5921)
@@ -130,14 +130,19 @@
         conv = fPoint0405;
 
-    MVector3 sky;
-    sky.SetRaDec(fPointPos->GetRaRad(), fPointPos->GetDecRad());
+    TVector2 d;
 
-    // Get current star position (off center)
-    MVector3 vl2 = MAstroSky2Local(*fTime, *fObservatory)*sky;
-    // Get corrected position camera center)
-    TVector3 vl1 = conv->Correct(vl2);
+    if (conv)
+    {
+        MVector3 sky;
+        sky.SetRaDec(fPointPos->GetRaRad(), fPointPos->GetDecRad());
 
-    // Calculate x,y of za2
-    TVector2 d = MAstro::GetDistOnPlain(vl1, vl2, fGeom->GetCameraDist()*1000);
+        // Get current star position (off center)
+        MVector3 vl2 = MAstroSky2Local(*fTime, *fObservatory)*sky;
+        // Get corrected position camera center)
+        TVector3 vl1 = conv->Correct(vl2);
+
+        // Calculate x,y of za2
+        d = MAstro::GetDistOnPlain(vl1, vl2, fGeom->GetCameraDist()*1000);
+    }
 
     // Set Source position
