From cee0c6bd73c004208a86ed1880edc3757bb0227d Mon Sep 17 00:00:00 2001 From: Tigran Avagyan Date: Mon, 26 Jun 2023 09:30:43 +0400 Subject: [PATCH] added nullcheck for functions not having entry point (non implemented functions) --- slither/solc_parsing/declarations/function.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/slither/solc_parsing/declarations/function.py b/slither/solc_parsing/declarations/function.py index 3df121e8ff..b3821388bf 100644 --- a/slither/solc_parsing/declarations/function.py +++ b/slither/solc_parsing/declarations/function.py @@ -315,7 +315,8 @@ def analyze_content(self) -> None: self._remove_alone_endif() - self._update_reachability(self._function.entry_point) + if self._function.entry_point: + self._update_reachability(self._function.entry_point) # endregion ###################################################################################