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:
parent
1ecc21f0c8
commit
ba1bf1cb4c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user