Switched assert(x > 0) to assert(x != 0) to handle tagged pointers in java (flutter/engine#25174)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user