Index: trunk/psLib/src/math/psStats.c
===================================================================
--- trunk/psLib/src/math/psStats.c	(revision 12692)
+++ trunk/psLib/src/math/psStats.c	(revision 12700)
@@ -13,6 +13,6 @@
  * use ->min and ->max (PS_STAT_USE_RANGE)
  *
- *  @version $Revision: 1.207 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2007-03-30 03:24:38 $
+ *  @version $Revision: 1.208 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2007-03-31 03:00:07 $
  *
  *  Copyright 2006 IfA, University of Hawaii
@@ -1375,5 +1375,8 @@
         PS_BIN_FOR_VALUE (binMax, histogram->bounds, guessMean + maxFitSigma*guessStdev, 0);
         if (binMin == binMax) {
-            psAbort ("invalid range for fitted mean");
+            psError(PS_ERR_UNKNOWN, false, "Failed to calculate the min/max of the input vector.\n");
+            psFree(statsMinMax);
+            psTrace(TRACE, 4, "---- %s(false) end  ----\n", __func__);
+            return false;
         }
 
