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

do not freak out if we get an args of null

This commit is contained in:
Kevin Glynn 2011-03-04 12:51:39 +01:00
parent 41dc072776
commit d20d2c689e

View File

@ -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<string,TypeRepTemplate> mkTypeMap(ICollection<TypeRepTemplate> args) {
Dictionary<string,TypeRepTemplate> ret = new Dictionary<string,TypeRepTemplate>();
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;