You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I build the tinyB from source and used it in a Java app. (Ubuntu & Raspbian)
When I run the App from IDE (intelliJ IDEA) it works fine, but after build the jar (Gradle), and run it form terminal, I got a NullPointerException At BluetoothManager.java line 221.
public static synchronized BluetoothManager getBluetoothManager() throws RuntimeException, BluetoothException
{
..
.
String APIVersion = BluetoothManager.class.getPackage().getSpecificationVersion();
// APIVersion is null !!!
if (APIVersion.equals(nativeAPIVersion) == false) {
...
..
.
}
}
As a temporary workaround I just removed this API version checking code.
I build the tinyB from source and used it in a Java app. (Ubuntu & Raspbian)
When I run the App from IDE (intelliJ IDEA) it works fine, but after build the jar (Gradle), and run it form terminal, I got a NullPointerException At BluetoothManager.java line 221.
As a temporary workaround I just removed this API version checking code.