From 80fbe84fb197adb50b82a03e93660734fa543444 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 12 Sep 2016 20:04:59 +0200 Subject: [PATCH] Don't crash if switching to a local context while a live capture is open --- renderdocui/Windows/MainWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderdocui/Windows/MainWindow.cs b/renderdocui/Windows/MainWindow.cs index 42930f2eb..b90a707ab 100644 --- a/renderdocui/Windows/MainWindow.cs +++ b/renderdocui/Windows/MainWindow.cs @@ -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)