Skip to content

Commit adb7414

Browse files
committed
fix check
1 parent cd9bf1b commit adb7414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/futurepress/staticserver/FPStaticServerModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public void origin(Promise promise) {
179179

180180
@ReactMethod
181181
public void isRunning(Promise promise) {
182-
promise.resolve(server && server.isAlive());
182+
promise.resolve(server != null && server.isAlive());
183183
}
184184

185185
/* Shut down the server if app is destroyed or paused */

0 commit comments

Comments
 (0)