Fix NPE at Keyboard

Bug: 3250672
Change-Id: Ieef7ff5e8ba77a2d43f561c2bd2a1921230bd49d
This commit is contained in:
Tadashi G. Takaoka 2010-12-03 12:36:31 +09:00
parent a0e780fa4c
commit 566870c0f1

View File

@ -366,15 +366,15 @@ public class Keyboard {
}
public boolean isAlphaKeyboard() {
return mId.isAlphabetKeyboard();
return mId != null && mId.isAlphabetKeyboard();
}
public boolean isPhoneKeyboard() {
return mId.isPhoneKeyboard();
return mId != null && mId.isPhoneKeyboard();
}
public boolean isNumberKeyboard() {
return mId.isNumberKeyboard();
return mId != null && mId.isNumberKeyboard();
}
public void setSpaceKey(Key space) {