Skip to content

Commit

Permalink
Simulation support: make sure that we have a data store before return…
Browse files Browse the repository at this point in the history
…ing our number of runs (#1630).

This is needed, for example, when a simulation was running and then we
reloaded a SED-ML file as a result of its corresponding CellML file
having been modified.
  • Loading branch information
agarny committed May 1, 2018
1 parent 9b9e721 commit 72f0c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/support/SimulationSupport/src/simulation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ int SimulationResults::runsCount() const
{
// Return the number of runs held by our data store

return mDataStore->runsCount();
return mDataStore?mDataStore->runsCount():0;
}

//==============================================================================
Expand Down

0 comments on commit 72f0c7e

Please sign in to comment.