Skip to content

Commit

Permalink
Merge pull request #2221 from eisenhauer/DPNotifyProtect
Browse files Browse the repository at this point in the history
Protect DP_interface call in case NULL
  • Loading branch information
eisenhauer authored May 9, 2020
2 parents 129b501 + 4495fa2 commit c2f1248
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/adios2/toolkit/sst/cp/cp_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1451,9 +1451,12 @@ static void NotifyDPArrivedMetadata(SstStream Stream)
if ((TS->MetadataMsg->Metadata != NULL) &&
(TS->MetadataMsg->Timestep > Stream->LastDPNotifiedTimestep))
{
Stream->DP_Interface->timestepArrived(&Svcs, Stream->DP_Stream,
TS->MetadataMsg->Timestep,
TS->MetadataMsg->PreloadMode);
if (Stream->DP_Interface->timestepArrived)
{
Stream->DP_Interface->timestepArrived(
&Svcs, Stream->DP_Stream, TS->MetadataMsg->Timestep,
TS->MetadataMsg->PreloadMode);
}
Stream->LastDPNotifiedTimestep = TS->MetadataMsg->Timestep;
}
TS = TS->Next;
Expand Down

0 comments on commit c2f1248

Please sign in to comment.