sdremote: avoid crash when fiddling with elapsed time.

This commit is contained in:
Michael Meeks
2013-02-13 13:51:08 +00:00
parent 005729c787
commit 03b941e9ae

View File

@@ -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 {