User input handling in main() appears to assume at least one positive IP match. If all matches are negative, targets_filter will be null.
Fixed in patch 05-input-validation, as seen here:
perennialmind@f928723
Said patch contains miscellaneous changes for stricter input validation.