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

Commit 3acedf28 authored by Robert Snoeberger's avatar Robert Snoeberger
Browse files

Guard against null when wrapping input connection.

Fixes: 143215978
Test: Not seeing crashes when running memory microbenchmark in ag/9592498.
Change-Id: I14d1e75b372b51d5df0693c513fefade3ebdb71b
parent b77d972a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -679,8 +679,8 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
                        }
                    };

            InputConnection ic = InputConnectionCompat.createWrapper(
                    inputConnection, outAttrs, callback);
            InputConnection ic = inputConnection == null ? null :
                    InputConnectionCompat.createWrapper(inputConnection, outAttrs, callback);

            Context userContext = null;
            try {