Skip to content

Commit 4c79ce4

Browse files
committed
Set to 0 instead of null to bypass a null check.
1 parent 423f3c3 commit 4c79ce4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

windows/src/org/testar/monkey/alayer/windows/StateFetcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public UIAState call() throws Exception {
104104
UIAState root = createWidgetTree(uiaRoot);
105105
root.set(Tags.Role, Roles.Process);
106106
root.set(Tags.NotResponding, false);
107-
root.set(Tags.HWND, uiaRoot.children.get(0).get(Tags.HWND, null));
107+
root.set(Tags.HWND, uiaRoot.children.get(0).get(Tags.HWND, 0L));
108108
for (Widget w : root)
109109
w.set(Tags.Path,Util.indexString(w));
110110
if (system != null && (root == null || root.childCount() == 0) && system.getNativeAutomationCache() != null)

0 commit comments

Comments
 (0)