aboutsummaryrefslogtreecommitdiffstats
path: root/rlp.cpp
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2014-10-17 00:19:58 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2014-10-17 00:26:34 +0800
commitfe210166867ebb5500450dda6a4cdeb1887b5e34 (patch)
tree4fe6139443f4247f7d8b830d99a24353bb60b09f /rlp.cpp
parent1e29956b5841d2343de2b7be8f301613c973b34d (diff)
downloaddexon-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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rlp.cpp b/rlp.cpp
index 95d40ada..69360ad6 100644
--- a/rlp.cpp
+++ b/rlp.cpp
@@ -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);