Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Check that scope is non-NULL pointer.
authorMatthieu Volat <mazhe@alkumuna.eu>
Tue, 20 Dec 2016 20:04:22 +0000 (21:04 +0100)
committerAugustin Degomme <augustin.degomme@unibas.ch>
Tue, 20 Dec 2016 20:19:17 +0000 (21:19 +0100)
src/mc/mc_checkpoint.cpp

index d6e234c..29afd75 100644 (file)
@@ -292,7 +292,7 @@ static void fill_local_variables_values(mc_stack_frame_t stack_frame,
 {
   simgrid::mc::Process* process = &mc_model_checker->process();
 
-  if (!scope->range.contain(stack_frame->ip))
+  if (!scope || !scope->range.contain(stack_frame->ip))
     return;
 
   for(simgrid::mc::Variable& current_variable :