api_connection.hpp: Handle deserialization of null api_ptr
This commit is contained in:
parent
0f9a96314e
commit
3dc9639bdd
1 changed files with 2 additions and 0 deletions
|
|
@ -301,6 +301,8 @@ namespace fc {
|
||||||
const std::shared_ptr<fc::api_connection>& con
|
const std::shared_ptr<fc::api_connection>& con
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
if( v.is_null() )
|
||||||
|
return fc::api_ptr();
|
||||||
return fc::api_ptr( new detail::any_api( v.as_uint64(), con ) );
|
return fc::api_ptr( new detail::any_api( v.as_uint64(), con ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue