From 79869b4fc66a76b0e9132d42ecba411ba1b41ccc Mon Sep 17 00:00:00 2001 From: Mohamed Date: Wed, 13 Sep 2017 09:06:06 +0200 Subject: add missing recursion stop to depth 10 --- app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src') 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 755b0327..123150c2 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java @@ -248,7 +248,7 @@ public class AutofillService extends AccessibilityService { } private String searchWebView(AccessibilityNodeInfo source, int depth) { - if (source == null) { + if (source == null || depth == 0) { return null; } for (int i = 0; i < source.getChildCount(); i++) { -- cgit v1.2.3 From 55c46eb644a53dce5531888e6171730ee18bd18f Mon Sep 17 00:00:00 2001 From: Mohamed Date: Wed, 13 Sep 2017 09:07:46 +0200 Subject: check that the packagename is not null --- app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src') 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 123150c2..16bf4547 100644 --- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java +++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillService.java @@ -212,6 +212,7 @@ public class AutofillService extends AccessibilityService { // Match with the app if a webview was not found or one was found but // there's no title or url to go by if (webViewTitle == null || (webViewTitle.equals("") && webViewURL == null)) { + if (info.getPackageName() == null) return; packageName = info.getPackageName().toString(); // get the app name and find a corresponding password -- cgit v1.2.3