Fix crash in ReconnectClient and Inactivate client when IServer ptr is null (bug 6122, r=asherkin).
authorNicholas Hastings <skamonkey@gmail.com>
Thu May 15 10:49:32 2014 -0400 (2014-05-15)
changeset 436154866d2316bf
parent 4360 69b8ab2ac1c9
child 4362 8a15e967d983
Fix crash in ReconnectClient and Inactivate client when IServer ptr is null (bug 6122, r=asherkin).
extensions/sdktools/clientnatives.cpp
     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);