Skip to content

lib/src/server/handlers.dart 's _customHeaders is reset to null, it should be reset to empty Map instead #736

Open
@isoos

Description

@isoos

Error report:
https://www.reddit.com/r/dartlang/comments/1fk84bb/unhandled_exception_from_grpc_package/

The reported line seems to be when forcing _customHeaders to not-null: https://github.com/grpc/grpc-dart/blob/master/lib/src/server/handler.dart#L384

Looking at the git blame history, I think _customHeaders = null should have been migrated to _customHeaders = <String, String>{} when the null-safety migration happened.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions