commit | 3acedf287edaf61e94066a9498071e2bcefb92c7 | [log] [tgz] |
---|---|---|
author | Robert Snoeberger <snoeberger@google.com> | Wed Oct 23 12:55:15 2019 -0400 |
committer | Robert Snoeberger <snoeberger@google.com> | Wed Oct 23 13:06:27 2019 -0400 |
tree | d8c9c9d0a0ce9c9ad94e433005e86d52dea6de9f | |
parent | b77d972ac250f898baf40edeae767bb4e28cd4c2 [diff] |
Guard against null when wrapping input connection. Fixes: 143215978 Test: Not seeing crashes when running memory microbenchmark in ag/9592498. Change-Id: I14d1e75b372b51d5df0693c513fefade3ebdb71b
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java index 7b4a7d2..502a9bd 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/RemoteInputView.java
@@ -679,8 +679,8 @@ } }; - InputConnection ic = InputConnectionCompat.createWrapper( - inputConnection, outAttrs, callback); + InputConnection ic = inputConnection == null ? null : + InputConnectionCompat.createWrapper(inputConnection, outAttrs, callback); Context userContext = null; try {