From f3d253b1333aa516c1dbbe7c3fb03ac5e27f82c2 Mon Sep 17 00:00:00 2001 From: calderwoodra Date: Fri, 4 May 2018 15:15:06 -0700 Subject: Add a null check for digitsHint. Bug: 77908301 Test: listnr PiperOrigin-RevId: 195479105 Change-Id: Ieb64d5df486392b9bc1f6e9bbd340dc18e7b6e26 --- java/com/android/dialer/dialpadview/DialpadFragment.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/java/com/android/dialer/dialpadview/DialpadFragment.java b/java/com/android/dialer/dialpadview/DialpadFragment.java index c45c77689..d48870dfc 100644 --- a/java/com/android/dialer/dialpadview/DialpadFragment.java +++ b/java/com/android/dialer/dialpadview/DialpadFragment.java @@ -477,7 +477,13 @@ public class DialpadFragment extends Fragment return; } digits.setContentDescription(null); - digitsHint.setVisibility(View.GONE); + + // TOOD(77908301): Investigate why this is the case + // It's not clear why digitsHint would be null when digits is initialized as the time, so adding + // a todo to investigate why. + if (digitsHint != null) { + digitsHint.setVisibility(View.GONE); + } } /** -- cgit v1.2.3