mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
test/rlp bugfix: expectedText can be empty
This commit is contained in:
parent
1e29956b58
commit
0074309337
2
rlp.cpp
2
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);
|
||||
|
Loading…
Reference in New Issue
Block a user