Fix crash in ReconnectClient and Inactivate client when IServer ptr is null (bug 6122, r=asherkin).
Fix crash in ReconnectClient and Inactivate client when IServer ptr is null (
bug 6122, r=asherkin).
1.1 --- a/extensions/sdktools/clientnatives.cpp Thu May 15 10:45:43 2014 -0400
1.2 +++ b/extensions/sdktools/clientnatives.cpp Thu May 15 10:49:32 2014 -0400
1.3 @@ -47,7 +47,7 @@
1.4
1.5 if (!iserver)
1.6 {
1.7 - pContext->ThrowNativeError("IServer is null");
1.8 + return pContext->ThrowNativeError("IServer interface not supported, file a bug report.");
1.9 }
1.10
1.11 IClient* pClient = iserver->GetClient(params[1] - 1);
1.12 @@ -74,7 +74,7 @@
1.13
1.14 if (!iserver)
1.15 {
1.16 - pContext->ThrowNativeError("IServer is null");
1.17 + return pContext->ThrowNativeError("IServer interface not supported, file a bug report.");
1.18 }
1.19
1.20 IClient* pClient = iserver->GetClient(params[1] - 1);