Index: trunk/Ohana/src/opihi/pcontrol/CheckHost.c
===================================================================
--- trunk/Ohana/src/opihi/pcontrol/CheckHost.c	(revision 3212)
+++ trunk/Ohana/src/opihi/pcontrol/CheckHost.c	(revision 4450)
@@ -16,13 +16,14 @@
       /* if host has a job, job is dead, push to Pending */
       if (host[0].stack == PCONTROL_HOST_BUSY) {
-	job = host[0].job;
-	N = FindJob (job[0].JobID, PCONTROL_JOB_BUSY);
-	if (N < 0) {
-	  fprintf (stderr, "error: job is not found in BUSY list\n");
-	  exit (2);
+	job = (Job *) host[0].job;
+	if (job != NULL) {
+	  N = FindJob (job[0].JobID, PCONTROL_JOB_BUSY);
+	  if (N < 0) {
+	    fprintf (stderr, "programming error: job is not found in BUSY list\n");
+	    exit (2);
+	  }
+	  job[0].host = NULL; /* unlink host & job */
+	  PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);
 	}
-	job[0].host = NULL; /* unlink host & job */
-	job = GetJob (PCONTROL_JOB_BUSY, N);
-	PutJob (job, PCONTROL_JOB_PENDING, STACK_BOTTOM);
       }
       host[0].job = NULL;
