From aadde675a9d82b51cbdf74e0bacfb67f1401a137 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 6 Oct 2016 15:24:18 +0200 Subject: [PATCH] Fix crash when switching back to local context with connections 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 39d69f004..5dd1d62fb 100644 --- a/renderdocui/Windows/MainWindow.cs +++ b/renderdocui/Windows/MainWindow.cs @@ -1182,7 +1182,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; live.CleanItems();