diff --git a/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTemplate/TranslationTemplate.cs b/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTemplate/TranslationTemplate.cs index 688cd4d..7ef6285 100644 --- a/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTemplate/TranslationTemplate.cs +++ b/CSharpTranslator/antlr3/src/CS2JTranslator/CS2JTemplate/TranslationTemplate.cs @@ -1749,7 +1749,11 @@ namespace Twiglet.CS2J.Translator.TypeRep // IMPORTANT: Call this on the fresh copy because it has the side effect of updating this type's TypeParams. protected Dictionary mkTypeMap(ICollection args) { Dictionary ret = new Dictionary(); - if (args != null && args.Count == TypeParams.Length) + if (args == null) + { + return ret; + } + if (args.Count == TypeParams.Length) { InstantiatedTypes = new TypeRepTemplate[args.Count]; int i = 0;