You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_CastError: Null check operator used on a null value at MaterialFonts.updateInner(flutter_cache.dart:141) #90092
Thread 0 main thread_CastError: Null check operator used on a null value
at MaterialFonts.updateInner(flutter_cache.dart:141)
at CachedArtifact.update(cache.dart:688)
at Cache.updateAll(cache.dart:557)
at <asynchronous gap>(async)
at FlutterCommand.verifyThenRunCommand(flutter_command.dart:1228)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1125)
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:288)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:236)
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:92)
at <asynchronous gap>(async)
changed the title [-]thread_CastError: Null check operator used on a null value at MaterialFonts.updateInner(flutter_cache.dart:141)[/-][+]_CastError: Null check operator used on a null value at MaterialFonts.updateInner(flutter_cache.dart:141)[/+]on Sep 15, 2021
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.
Activity
[-]thread_CastError: Null check operator used on a null value at MaterialFonts.updateInner(flutter_cache.dart:141)[/-][+]_CastError: Null check operator used on a null value at MaterialFonts.updateInner(flutter_cache.dart:141)[/+]jmagman commentedon Sep 15, 2021
A check for
versionexistence was added afterupdateInner(too late) in #79864. I'm not sure whyversionis null at this point.christopherfujino commentedon Jan 27, 2022
it looks to me like this can only be null if the version file does not exist on disk: https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/cache.dart#L609
I'm not sure how that is possible though...
christopherfujino commentedon Jan 27, 2022
Ohh, actually, if I look at this: #91942
The user does not have an engine version too, and are on Windows. I wonder if this is the unzipping error where not all files are present?
christopherfujino commentedon Jan 17, 2024
A newer stacktrace from #141450 at stable 3.13.1
[flutter_tools] Handle null version gracefully in CachedArtifact and …
github-actions commentedon Sep 7, 2026
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 -vand a minimal reproduction of the issue.