diff options
author | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-10-17 00:19:58 +0800 |
---|---|---|
committer | Paweł Bylica <pawel.bylica@imapp.pl> | 2014-10-17 00:26:34 +0800 |
commit | fe210166867ebb5500450dda6a4cdeb1887b5e34 (patch) | |
tree | 4fe6139443f4247f7d8b830d99a24353bb60b09f /rlp.cpp | |
parent | 1e29956b5841d2343de2b7be8f301613c973b34d (diff) | |
download | dexon-solidity-fe210166867ebb5500450dda6a4cdeb1887b5e34.tar dexon-solidity-fe210166867ebb5500450dda6a4cdeb1887b5e34.tar.gz dexon-solidity-fe210166867ebb5500450dda6a4cdeb1887b5e34.tar.bz2 dexon-solidity-fe210166867ebb5500450dda6a4cdeb1887b5e34.tar.lz dexon-solidity-fe210166867ebb5500450dda6a4cdeb1887b5e34.tar.xz dexon-solidity-fe210166867ebb5500450dda6a4cdeb1887b5e34.tar.zst dexon-solidity-fe210166867ebb5500450dda6a4cdeb1887b5e34.zip |
test/rlp bugfix: expectedText can be empty
Diffstat (limited to 'rlp.cpp')
-rw-r--r-- | rlp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -79,7 +79,7 @@ namespace dev if ( v.type() == js::str_type ) { const std::string& expectedText = v.get_str(); - if ( expectedText.front() == '#' ) + if ( !expectedText.empty() && expectedText.front() == '#' ) { // Deal with bigint instead of a raw string std::string bigIntStr = expectedText.substr(1,expectedText.length()-1); |