if(safe_val(NULL, rsc, stop) == NULL || safe_val(NULL, rsc, start) == NULL) {  crm_err("Either start action (%p) or" " stop action (%p) were not defined", safe_val(NULL, rsc, stop), safe_val(NULL, rsc, start)); continue;
node_t *start_node = safe_val4( NULL, rsc, color, details, chosen_node); node_t *stop_node = safe_val(NULL, rsc, cur_node); node_t *default_node = NULL; if(stop_node == NULL && start_node == NULL) {  default_node = NULL;  } else if(stop_node == NULL) {  default_node = start_node; rsc->start->optional = FALSE; crm_info("Starting resource %s (%s)", safe_val(NULL, rsc, id), safe_val3(NULL, stop_node, details,uname));   } else if(start_node == NULL) {  default_node = stop_node; rsc->stop->optional  = FALSE; crm_warn("Stop resource %s (%s)", safe_val(NULL, rsc, id), safe_val3(NULL, stop_node, details,uname));  } else if(safe_str_eq( safe_val3(NULL, stop_node, details, uname), safe_val3(NULL, start_node, details, uname))) {   default_node = start_node; crm_verbose("No change (possible restart)" " for Resource %s (%s)", safe_val(NULL, rsc, id), safe_val3( NULL,default_node,details,uname));   } else {   default_node = start_node; rsc->stop->optional  = FALSE; rsc->start->optional = FALSE;  crm_debug("Move resource %s (%s -> %s)", safe_val(NULL, rsc, id), safe_val3(NULL, stop_node,details,uname), safe_val3(NULL, start_node,details,uname));
stage5(GListPtr resources){		int lpc = 0;	crm_verbose("filling in the nodes to perform the actions on");	slist_iter(		rsc, resource_t, resources, lpc,		crm_debug_action(print_resource("Processing", rsc, FALSE));				if(safe_val(NULL, rsc, stop) == NULL		   || safe_val(NULL, rsc, start) == NULL) {			// error			crm_err("Either start action (%p) or"				" stop action (%p) were not defined",				safe_val(NULL, rsc, stop),				safe_val(NULL, rsc, start));			continue;		}