diff --git a/capa/features/extractors/helpers.py b/capa/features/extractors/helpers.py index 7dcacbba..e78be96e 100644 --- a/capa/features/extractors/helpers.py +++ b/capa/features/extractors/helpers.py @@ -42,7 +42,9 @@ def is_ordinal(symbol): """ is the given symbol an ordinal that is prefixed by "#"? """ - return symbol[0] == "#" + if symbol: + return symbol[0] == "#" + return False def generate_symbols(dll, symbol):