From f97dad59a6ec08fd33999dd28f309b001c6e28c9 Mon Sep 17 00:00:00 2001 From: Pedro Velho Date: Tue, 24 May 2011 15:17:28 +0200 Subject: [PATCH] Bug fix. Cope with the new way actions are handled. --- src/simix/smx_network.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/simix/smx_network.c b/src/simix/smx_network.c index d03fabbd0c..992f98c122 100644 --- a/src/simix/smx_network.c +++ b/src/simix/smx_network.c @@ -781,6 +781,9 @@ smx_process_t SIMIX_comm_get_dst_proc(smx_action_t action) */ XBT_INLINE int SIMIX_comm_is_latency_bounded(smx_action_t action) { + if(!action){ + return 0; + } if (action->comm.surf_comm){ XBT_DEBUG("Getting latency limited for surf_action (%p)", action->comm.surf_comm); action->latency_limited = surf_workstation_model->get_latency_limited(action->comm.surf_comm); -- 2.20.1