Skip to content

[flutter_tools] _CastError: null check operator used on a null value in MaterialFonts.updateInner #112872

Closed

Description

@christopherfujino

On stable/3.3.3 Windows

_CastError: Null check operator used on a null valuecontent_copy
at MaterialFonts.updateInner(flutter_cache.dart:141)
at CachedArtifact.update(cache.dart:810)
at Cache.updateAll(cache.dart:677)
at <asynchronous gap>(async)
at FlutterCommand.verifyThenRunCommand(flutter_command.dart:1325)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1209)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:209)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:281)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:229)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:62)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:91)
at <asynchronous gap>(async)

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    P1High-priority issues at the top of the work list
    on Oct 4, 2022
  2. christopherfujino commented on Oct 4, 2022

    @christopherfujino
    ContributorAuthor

    This value being null means that the version file here was not present on disk.

  3. christopherfujino commented on Oct 4, 2022

    @christopherfujino
    ContributorAuthor

    The real fix here should be #112875

  4. christopherfujino commented on Nov 15, 2022

    @christopherfujino
    ContributorAuthor

    @christopherfujino we should never be getting this, we should toolexit when we fail to read the version file.

  5. added
    P2Important issues not at the top of the work list
    and removed
    P1High-priority issues at the top of the work list
    on Dec 6, 2022
  6. huycozy commented on Jan 15, 2024

    @huycozy
    Member

    Hi @christopherfujino, there is a new report recently #141450 that I marked as a duplicate of this one. But I also found #90092. I wonder if we should keep this or #90092? Or these issues are different? (looks like these are all about null check for version as far as I can see)

  7. christopherfujino commented on Jan 17, 2024

    @christopherfujino
    ContributorAuthor

    Hi @christopherfujino, there is a new report recently #141450 that I marked as a duplicate of this one. But I also found #90092. I wonder if we should keep this or #90092? Or these issues are different? (looks like these are all about null check for version as far as I can see)

    Good call, these all look the same to me. I'm closing this one as a duplicate of #90092. Thanks @huycozy

  8. added
    r: duplicateIssue is closed as a duplicate of an existing issue
    on Jan 17, 2024
  9. github-actions commented on Jan 31, 2024

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listr: duplicateIssue is closed as a duplicate of an existing issueteam-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions