diff options
Diffstat (limited to 'android/sdremote/src/org/libreoffice/impressremote/communication/Receiver.java')
-rw-r--r-- | android/sdremote/src/org/libreoffice/impressremote/communication/Receiver.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/Receiver.java b/android/sdremote/src/org/libreoffice/impressremote/communication/Receiver.java index a3fe70e40791..407540a19721 100644 --- a/android/sdremote/src/org/libreoffice/impressremote/communication/Receiver.java +++ b/android/sdremote/src/org/libreoffice/impressremote/communication/Receiver.java @@ -35,6 +35,8 @@ public class Receiver { } public void parseCommand(ArrayList<String> aCommand) { + if (aCommand.size() == 0) + return; // E.g. if empty line received for whatever reason. String aInstruction = aCommand.get(0); if (aInstruction.equals("slideshow_started")) { int aSlideShowlength = Integer.parseInt(aCommand.get(1)); |