Skip to content
Snippets Groups Projects
Commit 0a5345c7 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix NPE

Bug: 5086698
Change-Id: Iaa3082649344722bd643c49c9d151df754d6e337
parent 60ccbe16
No related branches found
No related tags found
No related merge requests found
...@@ -674,6 +674,7 @@ public class PointerTracker { ...@@ -674,6 +674,7 @@ public class PointerTracker {
private void startLongPressTimer(int keyIndex) { private void startLongPressTimer(int keyIndex) {
Key key = getKey(keyIndex); Key key = getKey(keyIndex);
if (key == null) return;
if (key.mCode == Keyboard.CODE_SHIFT) { if (key.mCode == Keyboard.CODE_SHIFT) {
if (sLongPressShiftKeyTimeout > 0) { if (sLongPressShiftKeyTimeout > 0) {
mTimerProxy.startLongPressTimer(sLongPressShiftKeyTimeout, keyIndex, this); mTimerProxy.startLongPressTimer(sLongPressShiftKeyTimeout, keyIndex, this);
......
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