throwIfNullptr<T> function
T
throwIfNullptr<T>(
- T value
Implementation
T throwIfNullptr<T>(T value) {
if (value == ffi.nullptr) {
log('bicronet_grpc: throwIfNullptr failed at ${StackTrace.current}');
throw Exception("Unexpected cronet failure: got null");
}
return value;
}