From 3dc9639bdd091460ff3b7e25a6c8742ead4a783c Mon Sep 17 00:00:00 2001 From: theoreticalbts Date: Wed, 26 Oct 2016 13:15:11 -0400 Subject: [PATCH] api_connection.hpp: Handle deserialization of null api_ptr --- include/fc/rpc/api_connection.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fc/rpc/api_connection.hpp b/include/fc/rpc/api_connection.hpp index c2268ea..1cd5561 100644 --- a/include/fc/rpc/api_connection.hpp +++ b/include/fc/rpc/api_connection.hpp @@ -301,6 +301,8 @@ namespace fc { const std::shared_ptr& con ) { + if( v.is_null() ) + return fc::api_ptr(); return fc::api_ptr( new detail::any_api( v.as_uint64(), con ) ); }