From 24859879017d71b820dbae25b2a7b40e881babd1 Mon Sep 17 00:00:00 2001 From: Wiktor Kocielski Date: Sun, 18 Jun 2023 10:48:46 +0300 Subject: [PATCH] Fix binding generation for interfaces --- Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs index cd6bdf6ab..481c6da1c 100644 --- a/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs +++ b/Source/Tools/Flax.Build/Bindings/BindingsGenerator.CSharp.cs @@ -1239,7 +1239,7 @@ namespace Flax.Build.Bindings throw new Exception($"Class {classInfo.Name} cannot implement interface {interfaceInfo.Name} because it requires ScriptingObject as a base class."); contents.AppendLine(); - if (functionInfo.Comment.Length != 0) + if (functionInfo.Comment != null && functionInfo.Comment.Length != 0) contents.Append(indent).AppendLine("/// "); GenerateCSharpAttributes(buildData, contents, indent, classInfo, functionInfo.Attributes, null, false, useUnmanaged); contents.Append(indent).Append(GenerateCSharpAccessLevel(functionInfo.Access));