diff --git a/src/cc/dice.cpp b/src/cc/dice.cpp index 3a16ea7ba..d5756990f 100644 --- a/src/cc/dice.cpp +++ b/src/cc/dice.cpp @@ -128,7 +128,7 @@ void *dicefinish(void *_ptr) if ( duplicate == 0 ) { res = DiceWinLoseTimeout(0,name,ptr->fundingtxid,ptr->bettxid,ptr->iswin); - if ( is_hexstr((char *)res.c_str(),0) > 64 ) + if ( res != 0 && res.size() > 64 && is_hexstr((char *)res.c_str(),0) > 64 ) { CTransaction tx; uint256 txid; char str[65]; LOCK(cs_main);