From 5aae80fd40c4514a7cd1c69d57dffefb75975ca4 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 8 May 2013 23:12:10 +0100 Subject: [PATCH] Check for a null string when writing text in templates. --- src/Generator/Utils/TextGenerator.cs | 3 +++ 1 file changed, 3 insertions(+) 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);