Skip to content

Commit

Permalink
Node tag should never be NULL/wrong type, but check just to be sure.
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Mar 3, 2015
1 parent 8fa5eb7 commit 1e0478b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderdocui/Windows/EventBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ private TreelistView.Node AddDrawcall(TreelistView.Node existing, FetchDrawcall
for (int i = drawNode.Nodes.Count - 1; i >= 0; i--)
{
DeferredEvent t = drawNode.Nodes[i].Tag as DeferredEvent;
if (!t.marker)
if (t != null && !t.marker)
{
drawNode.Tag = drawNode.Nodes[i].Tag;
found = true;
Expand Down

0 comments on commit 1e0478b

Please sign in to comment.