Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78fe372e authored by Svet Ganov's avatar Svet Ganov Committed by gitbuildkicker
Browse files

Fix NPE in autofill

Test: manual

bug:37330744

Change-Id: I110ece0b9283adb9998f8df795e2107da772482e
(cherry picked from commit 833c68e9)
parent 3f29aa87
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -569,7 +569,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
                }
                }
                viewState = new ViewState(this, id, value, this, ViewState.STATE_INITIAL);
                viewState = new ViewState(this, id, value, this, ViewState.STATE_INITIAL);
                mViewStates.put(id, viewState);
                mViewStates.put(id, viewState);
            } else if ((flags & FLAG_VIEW_ENTERED) != 0) {
            } else if (mStructure != null && (flags & FLAG_VIEW_ENTERED) != 0) {
                viewState = startPartitionLocked(id, value);
                viewState = startPartitionLocked(id, value);
            } else {
            } else {
                if (VERBOSE) Slog.v(TAG, "Ignored " + getFlagAsString(flags) + " for " + id);
                if (VERBOSE) Slog.v(TAG, "Ignored " + getFlagAsString(flags) + " for " + id);