From b315ff6c6fcd6230de4d5e719c34567779256d52 Mon Sep 17 00:00:00 2001 From: zeapo Date: Mon, 30 Oct 2017 22:56:19 +0100 Subject: [PATCH] seems like the info can be null too --- .../main/java/com/zeapo/pwdstore/autofill/AutofillService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java index 9578df0d..a02aa63f 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java @@ -199,6 +199,7 @@ public class AutofillService extends AccessibilityService { // we are now going to attempt to fill, save AccessibilityNodeInfo for later in decryptAndVerify // (there should be a proper way to do this, although this seems to work 90% of the time) info = event.getSource(); + if (info == null) return; // save the dialog's corresponding window so we can use getWindows() in dismissDialog if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {