Add safeguard for null refs

Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
main
Marcus Sanatan 2025-08-01 08:20:52 -04:00 committed by GitHub
parent 03ed78caef
commit 1a7e92f62b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ namespace UnityMcpBridge.Editor.Windows
instructionStyle instructionStyle
); );
} }
else if (mcpClient.mcpType == McpTypes.Windsurf) else if (mcpClient?.mcpType == McpTypes.Windsurf)
{ {
EditorGUILayout.LabelField( EditorGUILayout.LabelField(
" a) Going to File > Preferences > Windsurf Settings > MCP > Manage MCPs -> View raw config", " a) Going to File > Preferences > Windsurf Settings > MCP > Manage MCPs -> View raw config",