diff --git a/src/Generator/Utils/TextGenerator.cs b/src/Generator/Utils/TextGenerator.cs index 60a700c7..6ae9aa54 100644 --- a/src/Generator/Utils/TextGenerator.cs +++ b/src/Generator/Utils/TextGenerator.cs @@ -25,6 +25,9 @@ namespace CppSharp public void Write(string msg, params object[] args) { + if (string.IsNullOrEmpty(msg)) + return; + if (args.Length > 0) msg = string.Format(msg, args);