[Libreoffice-commits] core.git: android/sdremote

Tor Lillqvist tml at iki.fi
Tue Feb 12 22:44:21 PST 2013


 android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit b48bde463a849f6d441159949fdb409fbe75aca7
Author: Tor Lillqvist <tml at iki.fi>
Date:   Wed Feb 13 08:43:49 2013 +0200

    Don't bother with unnamed computers
    
    Change-Id: I4e912cab7ab252ef4c118fe63b02931eecd986aa

diff --git a/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java b/android/sdremote/src/org/libreoffice/impressremote/communication/BluetoothFinder.java
index b9c2cab..972a8a4 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());


More information about the Libreoffice-commits mailing list