api_connection.hpp: Handle deserialization of null api_ptr

This commit is contained in:
theoreticalbts 2016-10-26 13:15:11 -04:00
parent 0f9a96314e
commit 3dc9639bdd

View file

@ -301,6 +301,8 @@ namespace fc {
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 ) );
}