Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bug fix. Cope with the new way actions are handled.
authorPedro Velho <velho@mohave.(none)>
Tue, 24 May 2011 13:17:28 +0000 (15:17 +0200)
committerPedro Velho <velho@mohave.(none)>
Tue, 24 May 2011 14:23:28 +0000 (16:23 +0200)
src/simix/smx_network.c

index d03fabb..992f98c 100644 (file)
@@ -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);