1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

whoops, tyargs may be null

This commit is contained in:
Kevin Glynn 2010-11-18 14:22:01 +01:00
parent 1ecc21f0c8
commit ba1bf1cb4c

View File

@ -48,7 +48,7 @@ namespace RusticiSoftware.Translator.CSharp
// distinguish classes with same name, but differing numbers of type arguments
protected string mkTypeName (string name, List<String> tyargs) {
return name + (tyargs.Count > 0 ? "'" + tyargs.Count.ToString() : "");
return name + (tyargs != null && tyargs.Count > 0 ? "'" + tyargs.Count.ToString() : "");
}
protected string formatTyargs(List<string> tyargs) {