Skip to content

Commit

Permalink
Fix watching android class methods without an overload.
Browse files Browse the repository at this point in the history
Fixes #356
  • Loading branch information
leonjza committed Apr 7, 2020
1 parent a111716 commit f08cc24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objection/commands/android/hooking.py
Expand Up @@ -132,7 +132,7 @@ def watch_class_method(args: list) -> None:
return

fully_qualified_class = args[0]
overload_filter = args[1].replace(' ', '') if '--' not in args[1] else None
overload_filter = args[1].replace(' ', '') if (len(args) > 1 and '--' not in args[1]) else None

api = state_connection.get_api()
api.android_hooking_watch_method(fully_qualified_class,
Expand Down

0 comments on commit f08cc24

Please sign in to comment.