aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--java/BluetoothManager.java2
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) {