Don't crash if switching to a local context while a live capture is open

This commit is contained in:
baldurk
2016-09-12 20:04:59 +02:00
parent 588d6149cd
commit 80fbe84fb1
+1 -1
View File
@@ -1137,7 +1137,7 @@ namespace renderdocui.Windows
// allow live captures to this host to stay open, that way
// we can connect to a live capture, then switch into that
// context
if (live.Hostname == host.Hostname)
if (host != null && live.Hostname == host.Hostname)
continue;
if (live.CheckAllowClose() == false)