translator.ThrowError(luaState,"trying to index an invalid type reference");
return0;
}else
...
...
@@ -785,7 +790,7 @@ namespace NLua
IReflectklass;
objectobj=translator.GetRawNetObject(luaState,1);
if(obj.IsNull()||!(objisIReflect)){
if(obj==null||!(objisIReflect)){
translator.ThrowError(luaState,"trying to call constructor on an invalid type reference");
LuaLib.LuaPushNil(luaState);
return1;
...
...
@@ -983,7 +988,7 @@ namespace NLua
Debug.WriteLine("An error occurred during an attempt to retrieve a LuaTable extractor while checking for params array status.");
}
if(!extractValue.IsNull()){
if(extractValue!=null){
returntrue;
}
}else{
...
...
@@ -995,7 +1000,7 @@ namespace NLua
Debug.WriteLine(string.Format("An error occurred during an attempt to retrieve an extractor ({0}) while checking for params array status.",paramElementType.FullName));