Fix NPE found in monkey test

Bug: 8383127
Change-Id: Ifd70acabe118b477f103937c7f1e99e38e210833
This commit is contained in:
Tadashi G. Takaoka 2013-03-14 12:19:10 +09:00
parent a38e14fd55
commit 0d5f214aa7

View file

@ -62,6 +62,9 @@ public final class SetupActivity extends Activity {
@Override
public void handleMessage(final Message msg) {
final SetupActivity setupActivity = getOuterInstance();
if (setupActivity == null) {
return;
}
switch (msg.what) {
case MSG_POLLING_IME_SETTINGS:
if (SetupActivity.isThisImeEnabled(setupActivity)) {