mirror of https://github.com/grpc/grpc-dart.git
Proper NPE fix (#436)
Co-authored-by: Vyacheslav Egorov <vegorov@google.com>
This commit is contained in:
parent
2584a5e536
commit
17c0d37ae5
|
@ -161,8 +161,9 @@ class Http2ClientConnection implements connection.ClientConnection {
|
|||
metadata,
|
||||
compressionCodec,
|
||||
userAgent: options.userAgent,
|
||||
grpcAcceptEncodings: callOptions?.metadata['grpc-accept-encoding'] ??
|
||||
options.codecRegistry?.supportedEncodings,
|
||||
grpcAcceptEncodings:
|
||||
(callOptions?.metadata ?? const {})['grpc-accept-encoding'] ??
|
||||
options.codecRegistry?.supportedEncodings,
|
||||
);
|
||||
final stream = _transportConnection.makeRequest(headers);
|
||||
return Http2TransportStream(
|
||||
|
|
Loading…
Reference in New Issue