pvcall RPC can legally return NULL

This commit is contained in:
Michael Davidsaver
2019-12-19 18:46:57 -08:00
parent 7903a736d4
commit 9a02377b3d

View File

@ -232,11 +232,11 @@ int MAIN (int argc, char *argv[])
std::cerr<<"Error: "<<e.what()<<"\n";
return 1;
}
assert(ret);
if(verbosity>=1)
std::cout<<"# Result\n";
std::cout<<ret->stream().format(outmode);
if(ret)
std::cout<<ret->stream().format(outmode);
return 0;
} catch(std::exception& e) {