Browse Source

Check for a null string when writing text in templates.

pull/1/head
triton 12 years ago
parent
commit
5aae80fd40
  1. 3
      src/Generator/Utils/TextGenerator.cs

3
src/Generator/Utils/TextGenerator.cs

@ -25,6 +25,9 @@ namespace CppSharp @@ -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);

Loading…
Cancel
Save