summaryrefslogtreecommitdiff
path: root/android/sdremote
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-02-13 08:43:49 +0200
committerTor Lillqvist <tml@iki.fi>2013-02-13 08:43:49 +0200
commitb48bde463a849f6d441159949fdb409fbe75aca7 (patch)
tree27034c60be2cfbe00e93ed8af196cc1cf9f95f43 /android/sdremote
parent6a4edb3446f8e13236406fd34ff216e6cf54f3c3 (diff)
Don't bother with unnamed computers
Change-Id: I4e912cab7ab252ef4c118fe63b02931eecd986aa
Diffstat (limited to 'android/sdremote')
-rw-r--r--android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java
index b9c2cab545c8..972a8a403074 100644
--- a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java
+++ b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java
@@ -77,6 +77,8 @@ public class BluetoothFinder {
BluetoothDevice aDevice = (BluetoothDevice) aIntent.getExtras()
.get(BluetoothDevice.EXTRA_DEVICE);
Log.i(Globals.TAG, "BluetoothFinder.onReceive: found " + aDevice.getName() + " at " + aDevice.getAddress());
+ if (aDevice.getName() == null)
+ return;
Server aServer = new Server(Protocol.BLUETOOTH,
aDevice.getAddress(), aDevice.getName(),
System.currentTimeMillis());