diff options
author | Yoichi Hirai <i@yoichihirai.com> | 2016-10-21 18:14:24 +0800 |
---|---|---|
committer | Yoichi Hirai <i@yoichihirai.com> | 2016-10-21 19:01:45 +0800 |
commit | 9d9380d30ededcd29ad31c93f857ec7fa149f4a3 (patch) | |
tree | 6203405469c40b20c2a0cbfdef82684558904f3b /libsolidity/ast | |
parent | f30f421e1c4fffa54b824613c1040f2a1a845ad0 (diff) | |
download | dexon-solidity-9d9380d30ededcd29ad31c93f857ec7fa149f4a3.tar dexon-solidity-9d9380d30ededcd29ad31c93f857ec7fa149f4a3.tar.gz dexon-solidity-9d9380d30ededcd29ad31c93f857ec7fa149f4a3.tar.bz2 dexon-solidity-9d9380d30ededcd29ad31c93f857ec7fa149f4a3.tar.lz dexon-solidity-9d9380d30ededcd29ad31c93f857ec7fa149f4a3.tar.xz dexon-solidity-9d9380d30ededcd29ad31c93f857ec7fa149f4a3.tar.zst dexon-solidity-9d9380d30ededcd29ad31c93f857ec7fa149f4a3.zip |
ast: add a null check
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/AST.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp index 21c65c7b..695d9881 100644 --- a/libsolidity/ast/AST.cpp +++ b/libsolidity/ast/AST.cpp @@ -189,6 +189,7 @@ vector<Declaration const*> const& ContractDefinition::inheritableMembers() const m_inheritableMembers.reset(new vector<Declaration const*>()); auto addInheritableMember = [&](Declaration const* _decl) { + solAssert(_decl, "addInheritableMember got a nullpointer."); if (memberSeen.count(_decl->name()) == 0 && _decl->isVisibleInDerivedContracts()) { memberSeen.insert(_decl->name()); |