Index: trunk/Ohana/src/opihi/pcontrol/QueueOps.c
===================================================================
--- trunk/Ohana/src/opihi/pcontrol/QueueOps.c	(revision 3203)
+++ trunk/Ohana/src/opihi/pcontrol/QueueOps.c	(revision 10652)
@@ -7,4 +7,6 @@
   void *object;
   
+  ASSERT (stack != NULL, "stack missing");
+
   /* STACK_TOP == 0, STACK_BOTTOM == -1 */
   /* this code correctly handles the negative 'where' and Nobject == 0 */
@@ -25,4 +27,6 @@
 
   int i;
+
+  ASSERT (stack != NULL, "stack missing");
 
   /* STACK_TOP == 0, STACK_BOTTOM == -1 */
