Bug 795226 - Check for null composing span to avoid crash. r=blassey

This commit is contained in:
Jim Chen 2012-10-18 21:44:15 -04:00
parent 4428b1f6ca
commit d11df45da0

View File

@ -509,8 +509,8 @@ class GeckoInputConnection
if (imm != null && imm.isFullscreenMode()) {
int newStart;
int newEnd;
if (hasCompositionString()) {
Span span = getComposingSpan();
Span span = getComposingSpan();
if (span != null && hasCompositionString()) {
newStart = span.start;
newEnd = span.end;
} else {