android: Fix null pointer dereference in TextInputLayoutHelper

The AndroidX/Material version of TextInputLayout actually supports a
helper text, but it is always shown, so we continue to use our version.
This commit is contained in:
Tobias Brunner
2019-08-26 11:20:48 +02:00
parent 9a305b7cbe
commit 8af50736e1
@@ -143,7 +143,10 @@ public class TextInputLayoutHelper extends TextInputLayout
*/
public void setHelperText(CharSequence text)
{
mHelperText.setText(text);
if (mHelperText != null)
{
mHelperText.setText(text);
}
}
private void showHelper(boolean show)