diff options
author | Sven Gothel <[email protected]> | 2020-01-31 07:01:14 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-01-31 07:01:14 +0100 |
commit | 9a99e0414a7090e0b2dd0c69fe326a911e182c9c (patch) | |
tree | 0f3f60dd740e28d73a66103b19ca091cf281551d | |
parent | b88401a0bd3043e6ecf5bfdc5a99a10cf36b31d6 (diff) |
BluetoothManager: Allow launching from plain class files (no jar package w/ version number)
-rw-r--r-- | java/BluetoothManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/BluetoothManager.java b/java/BluetoothManager.java index cc8f9d3a..0c415d68 100644 --- a/java/BluetoothManager.java +++ b/java/BluetoothManager.java @@ -303,7 +303,7 @@ public class BluetoothManager { String nativeAPIVersion = getNativeAPIVersion(); String APIVersion = BluetoothManager.class.getPackage().getSpecificationVersion(); - if (APIVersion.equals(nativeAPIVersion) == false) { + if ( null != APIVersion && APIVersion.equals(nativeAPIVersion) == false) { String[] nativeAPIVersionCode = nativeAPIVersion.split("\\D"); String[] APIVersionCode = APIVersion.split("\\D"); if (APIVersionCode[0].equals(nativeAPIVersionCode[0]) == false) { |