fix some null reference exception I got while porting old HelloWorld externaltool. I dont understand any of this plumbing, so I can't describe it any better than that

This commit is contained in:
zeromus 2019-04-22 23:54:07 -04:00
parent 25d4d6a840
commit 41c854c030
1 changed files with 3 additions and 1 deletions

View File

@ -97,7 +97,9 @@ namespace BizHawk.Client.ApiHawk
method = mainFormClass.GetMethod(name, typeList.ToArray());
}
else method = mainFormClass.GetMethod(name);
method.Invoke(clientMainFormInstance, paramList);
if(method != null)
method.Invoke(clientMainFormInstance, paramList);
}
private static object GetMainFormField(string name)