From 886d49fd2a831666ebc1a7036fedae5f619ea778 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 27 Oct 2016 20:35:52 +0200 Subject: [PATCH] Don't crash if we try to refresh a non-host node, just skip it --- renderdocui/Windows/Dialogs/RemoteManager.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/renderdocui/Windows/Dialogs/RemoteManager.cs b/renderdocui/Windows/Dialogs/RemoteManager.cs index af44f3725..cf4dd9554 100644 --- a/renderdocui/Windows/Dialogs/RemoteManager.cs +++ b/renderdocui/Windows/Dialogs/RemoteManager.cs @@ -179,6 +179,11 @@ namespace renderdocui.Windows.Dialogs { TreelistView.Node node = o as TreelistView.Node; + RemoteHost host = node.Tag as RemoteHost; + + if(host == null) + return; + Control p = node.OwnerView; while (p.Parent != null) p = p.Parent; @@ -189,8 +194,6 @@ namespace renderdocui.Windows.Dialogs string username = System.Security.Principal.WindowsIdentity.GetCurrent().Name; - RemoteHost host = node.Tag as RemoteHost; - host.CheckStatus(); SetRemoteServerLive(node, host.ServerRunning, host.Busy);