Switched assert(x > 0) to assert(x != 0) to handle tagged pointers in java (flutter/engine#25174)

This commit is contained in:
gaaclarke
2021-03-23 03:19:56 -07:00
committed by GitHub
parent 0317a21159
commit 58151aed7d

View File

@@ -340,7 +340,7 @@ public class FlutterJNI {
FlutterJNI spawnedJNI =
nativeSpawn(nativeShellHolderId, entrypointFunctionName, pathToEntrypointFunction);
Preconditions.checkState(
spawnedJNI.nativeShellHolderId != null && spawnedJNI.nativeShellHolderId > 0,
spawnedJNI.nativeShellHolderId != null && spawnedJNI.nativeShellHolderId != 0,
"Failed to spawn new JNI connected shell from existing shell.");
return spawnedJNI;