Skip to content

Commit

Permalink
Fixed crash due to image pointer dereferencing.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggarra13 committed Jun 10, 2023
1 parent a4dbc99 commit 9e18aa9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mrv2/lib/mrvGL/mrvGLViewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ namespace mrv
}

// Refresh media info panel if there's data window present
if (!p.videoData.empty() && !p.videoData[0].layers.empty())
if (!p.videoData.empty() && !p.videoData[0].layers.empty() &&
p.videoData[0].layers[0].image)
{
const auto& tags =
p.videoData[0].layers[0].image->getTags();
Expand Down

0 comments on commit 9e18aa9

Please sign in to comment.