mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-10 18:15:18 -04:00
Prevent crash calling uninitialized service via JSON API
This commit is contained in:
parent
cc6f0b1f05
commit
7a37c11e47
4 changed files with 40 additions and 3 deletions
|
@ -45,6 +45,10 @@ registerHandler("$%apiPath%$",
|
|||
if(jReq.HasMember(kcd))
|
||||
jAns.AddMember(kcd, jReq[kcd], jAns.GetAllocator());
|
||||
|
||||
if( !checkRsServicePtrReady(
|
||||
$%instanceName%$, "$%instanceName%$", cAns, session ) )
|
||||
return;
|
||||
|
||||
$%paramsDeclaration%$
|
||||
|
||||
$%inputParamsDeserialization%$
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue