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));