aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-01-31 07:01:14 +0100
committerSven Gothel <[email protected]>2020-01-31 07:01:14 +0100
commit81ff36ed014a34be9194036e26dc9a2e272e5004 (patch)
tree58a12e2c75063bc2a085029c9c28db1dd59765c9
parent7e62eeb5acd9a638d59158004175a72ce6402f22 (diff)
BluetoothManager: Allow launching from plain class files (no jar package w/ version number)
-rw-r--r--java/BluetoothManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/BluetoothManager.java b/java/BluetoothManager.java
index cc8f9d3..0c415d6 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) {