Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null check operator used on a null value in ._getAdvisories.readAdvisoriesFromCache #4422

Open
NivashiniD opened this issue Nov 7, 2024 · 5 comments
Labels
needs-info Additional information needed from the issue author

Comments

@NivashiniD
Copy link

D:\fluttersdk\flutter\bin\flutter.bat --no-color pub get
Resolving dependencies...
Downloading packages...
Null check operator used on a null value
package:pub/src/source/hosted.dart 778:33 HostedSource._getAdvisories.readAdvisoriesFromCache
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 796:12 HostedSource._getAdvisories
===== asynchronous gap ===========================
package:pub/src/source/hosted.dart 1084:24 HostedSource.getAdvisoriesForPackageVersion
===== asynchronous gap ===========================
package:pub/src/solver/report.dart 416:26 SolveReport._reportPackage
===== asynchronous gap ===========================
package:pub/src/solver/report.dart 220:18 SolveReport._reportChanges
===== asynchronous gap ===========================
package:pub/src/solver/report.dart 75:21 SolveReport.show
===== asynchronous gap ===========================
package:pub/src/entrypoint.dart 580:5 Entrypoint.acquireDependencies
===== asynchronous gap ===========================
package:pub/src/command/get.dart 76:5 GetCommand.runProtected
===== asynchronous gap ===========================
package:pub/src/command.dart 196:7 PubCommand.run
===== asynchronous gap ===========================
package:args/command_runner.dart 212:13 CommandRunner.runCommand
===== asynchronous gap ===========================
package:dartdev/dartdev.dart 236:18 DartdevRunner.runCommand
===== asynchronous gap ===========================
package:dartdev/dartdev.dart 47:16 runDartdev
===== asynchronous gap ===========================
C:\b\s\w\ir\x\w\sdk\pkg\dartdev\bin\dartdev.dart 13:5 main
This is an unexpected error. The full log and other details are collected in:

C:\Users\dell\AppData\Local\Pub\Cache\log\pub_log.txt

Consider creating an issue on https://github.com/dart-lang/pub/issues/new
and attaching the relevant parts of that log file.
Process finished with exit code 1

@jonasfj
Copy link
Member

jonasfj commented Nov 7, 2024

quick note: Please use code fences when posting logs, for large log files please use a gist.

Also please note that the logs you posted reference C:\Users\dell\AppData\Local\Pub\Cache\log\pub_log.txt, which you could share as a gist.

@sigurdm
Copy link
Contributor

sigurdm commented Nov 7, 2024

This has a fix in https://github.com/dart-lang/pub/pull/4337/files

What version of dart are you using?

Run flutter --version

@sigurdm sigurdm added the needs-info Additional information needed from the issue author label Nov 7, 2024
@NivashiniD
Copy link
Author

NivashiniD commented Nov 7, 2024 via email

@sigurdm
Copy link
Contributor

sigurdm commented Nov 7, 2024

Hmm - seems the fix will be included only in th 3.6.0 release.

You could try out the beta branch.

@NivashiniD
Copy link
Author

NivashiniD commented Nov 7, 2024 via email

@github-actions github-actions bot removed the needs-info Additional information needed from the issue author label Nov 8, 2024
@sigurdm sigurdm added the needs-info Additional information needed from the issue author label Nov 12, 2024
@sigurdm sigurdm changed the title dart issue Null check operator used on a null value in ._getAdvisories.readAdvisoriesFromCache Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-info Additional information needed from the issue author
Projects
None yet
Development

No branches or pull requests

3 participants