Skip to content

Commit

Permalink
Add more null checks for app monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavpandey committed Jun 16, 2022
1 parent 72fe862 commit 9a3b524
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ protected void onCancelled() {
* @param event The accessibility event.
*/
public void onAccessibilityEvent(@Nullable AccessibilityEvent event) {
if (!isRunning() || isPaused() || event == null) {
if (!isRunning() || isPaused() || event == null
|| event.getPackageName() == null || event.getClassName() == null) {
return;
}

Expand Down

0 comments on commit 9a3b524

Please sign in to comment.