diff options
author | Michael Meeks <michael.meeks@suse.com> | 2013-02-13 13:51:08 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-02-13 13:52:52 +0000 |
commit | 03b941e9ae63626a3336aabdb6a3485835ec6f9d (patch) | |
tree | 991abc72a043f23b8e389582135202f5ee126f8c /android | |
parent | 005729c78705434efd2a5f46901eb63a5618b5ce (diff) |
sdremote: avoid crash when fiddling with elapsed time.
Diffstat (limited to 'android')
-rw-r--r-- | android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java b/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java index 0de6b32f9431..d3a0352cea1c 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java +++ b/android/sdremote/src/org/libreoffice/impressremote/PresentationActivity.java @@ -485,7 +485,7 @@ public class PresentationActivity extends SherlockFragmentActivity { @Override public boolean onEditorAction(TextView tv, int aID, KeyEvent aEvent) { - if (aEvent.getKeyCode() == KeyEvent.KEYCODE_ENTER) { + if (aEvent != null && aEvent.getKeyCode() == KeyEvent.KEYCODE_ENTER) { long aTime = 0; try { |