Skip to content

late is not correct for _next in chain_of_responsibility #10

@mortezasojodi

Description

@mortezasojodi

when you define _next late, for last Logger we get error (or any logger that we dont need _next ) because this variable is not initilized.
we must change it to Nullable inctance instead, like below:
Logger? _next;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions