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

Commit f768d24f authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 22030 into eclair

* changes:
  Potential fix for NPE at startExtractingText.
parents 0fa46a8d ba4d93fc
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1992,8 +1992,9 @@ public class InputMethodService extends AbstractInputMethodService {
            req.flags = InputConnection.GET_TEXT_WITH_STYLES;
            req.hintMaxLines = 10;
            req.hintMaxChars = 10000;
            mExtractedText = getCurrentInputConnection().getExtractedText(req,
                    InputConnection.GET_EXTRACTED_TEXT_MONITOR);
            InputConnection ic = getCurrentInputConnection();
            mExtractedText = ic == null? null
                    : ic.getExtractedText(req, InputConnection.GET_EXTRACTED_TEXT_MONITOR);
            
            final EditorInfo ei = getCurrentInputEditorInfo();