We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c3dca7 commit 4926ccfCopy full SHA for 4926ccf
objectbox-java/src/main/java/io/objectbox/sync/server/SyncServerImpl.java
@@ -80,7 +80,8 @@ public int getPort() {
80
81
@Override
82
public boolean isRunning() {
83
- return nativeIsRunning(getHandle());
+ long handle = this.handle; // Do not call getHandle() as it throws if handle is 0
84
+ return handle != 0 && nativeIsRunning(handle);
85
}
86
87
0 commit comments