Skip to content

Commit 1a7e92f

Browse files
Add safeguard for null refs
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
1 parent 03ed78c commit 1a7e92f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnityMcpBridge/Editor/Windows/ManualConfigEditorWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ protected virtual void OnGUI()
8787
instructionStyle
8888
);
8989
}
90-
else if (mcpClient.mcpType == McpTypes.Windsurf)
90+
else if (mcpClient?.mcpType == McpTypes.Windsurf)
9191
{
9292
EditorGUILayout.LabelField(
9393
" a) Going to File > Preferences > Windsurf Settings > MCP > Manage MCPs -> View raw config",

0 commit comments

Comments
 (0)