Skip to content

Commit

Permalink
fix nullpointer member access
Browse files Browse the repository at this point in the history
  • Loading branch information
ScorrMorr authored and past-due committed May 15, 2019
1 parent e9830eb commit 41af29c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/intelmap.cpp
Expand Up @@ -908,7 +908,11 @@ void intRemoveMessageView(bool animated)

//stop the video
VIEW_RESEARCH *psViewResearch = (VIEW_RESEARCH *)form->pUserData;
seq_RenderVideoToBuffer(psViewResearch->sequenceName, SEQUENCE_KILL);

if (psViewResearch != nullptr)
{
seq_RenderVideoToBuffer(psViewResearch->sequenceName, SEQUENCE_KILL);
}

if (animated)
{
Expand Down

0 comments on commit 41af29c

Please sign in to comment.