diff --git a/libethcore/TrieDB.h b/libethcore/TrieDB.h index aa70a6d91..01bf0b2b1 100644 --- a/libethcore/TrieDB.h +++ b/libethcore/TrieDB.h @@ -659,7 +659,7 @@ template bytes GenericTrieDB::deleteAt(RLP const& _orig, NibbleSl template bool GenericTrieDB::deleteAtAux(RLPStream& _out, RLP const& _orig, NibbleSlice _k) { - bytes b = deleteAt(_orig.isList() ? _orig : RLP(node(_orig.toHash())), _k); + bytes b = _orig.isEmpty() ? bytes() : deleteAt(_orig.isList() ? _orig : RLP(node(_orig.toHash())), _k); if (!b.size()) // not found - no change. return false;