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

Skip to content
Commit 5aa4c998 authored by Fredrik Helmer's avatar Fredrik Helmer Committed by Steve Kondik
Browse files

Avoid crash in selectCurrentWord

When viewing the context menu and choosing "Select word" on a
WebTextView with default value which is reset by a java script, there
will be a null pointer exception. One example of this is:

http://m.sonyericsson.com/mobile/online/home?lang=en-gb&os=android

Since no characters are yet entered, it does not make sense to offer
the option to select a word. This fix changes the context menu so that
"Select word" appears only if there is a
SelectionModifierCursorController. (the text is no longer empty).

Change-Id: I94b35e39b0ff9641bbf390b9a2510be437d3e6ed
parent 87222f38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment