From f4ecc55657c535b8b2d7113095903b3808e903e9 Mon Sep 17 00:00:00 2001 From: Daniel 2 Olofsson Date: Tue, 13 Aug 2013 10:30:26 +0200 Subject: Re-initialize error after attach If flag for error after attach is not reinitialized, it may cause NullPointerException on subsequent onAttachedWindow if error text was reset to null. Change-Id: I8976c28a6ca71017e5c4b3f29d4eeeb2eda48c38 --- core/java/android/widget/Editor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index 9dab7b4b8c41..748af7b63dd2 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -317,7 +317,7 @@ public class Editor { mErrorPopup = null; } - + mShowErrorAfterAttach = false; } else { setErrorIcon(icon); if (mTextView.isFocused()) { -- cgit v1.2.3-59-g8ed1b