diff --git a/dynamic-engine/src/main/java/com/pranavpandey/android/dynamic/engine/task/DynamicAppMonitor.java b/dynamic-engine/src/main/java/com/pranavpandey/android/dynamic/engine/task/DynamicAppMonitor.java index a717465..0f9acdd 100644 --- a/dynamic-engine/src/main/java/com/pranavpandey/android/dynamic/engine/task/DynamicAppMonitor.java +++ b/dynamic-engine/src/main/java/com/pranavpandey/android/dynamic/engine/task/DynamicAppMonitor.java @@ -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; }