Index: trunk/psModules/src/astrom/pmAstrometryObjects.c
===================================================================
--- trunk/psModules/src/astrom/pmAstrometryObjects.c	(revision 27531)
+++ trunk/psModules/src/astrom/pmAstrometryObjects.c	(revision 27554)
@@ -454,5 +454,5 @@
     // Define the histogram bin size.
     float binSize = 0.001;
-    long numBins = PS_MIN(100000, (max - min) / binSize); // Number of bins
+    long numBins = PS_MAX(PS_MIN(100000, (max - min) / binSize), 2); // Number of bins
     psTrace("psModules.astrom", 5, "Numbins is %ld\n", numBins);
     psTrace("psModules.astrom", 5, "Creating a robust histogram from data range (%.2f - %.2f)\n", min, max);
