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:
parent
41dc072776
commit
d20d2c689e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user