From 9d9380d30ededcd29ad31c93f857ec7fa149f4a3 Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Fri, 21 Oct 2016 12:14:24 +0200 Subject: ast: add a null check --- libsolidity/ast/AST.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libsolidity/ast') 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 const& ContractDefinition::inheritableMembers() const m_inheritableMembers.reset(new vector()); auto addInheritableMember = [&](Declaration const* _decl) { + solAssert(_decl, "addInheritableMember got a nullpointer."); if (memberSeen.count(_decl->name()) == 0 && _decl->isVisibleInDerivedContracts()) { memberSeen.insert(_decl->name()); -- cgit