Skip to content

on every start/restart warning: Operand of null-aware operation #299

@MohamedEL-Torky

Description

@MohamedEL-Torky

🐛 Bug Report

I'm using Flutter cached network image which depends on this package.
on every hot restart or cold start, I'm getting this error message from the internals of this package.

../../../../../Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_cache_manager-3.0.0-nullsafety.1/lib/src/storage/cache_info_repositories/cache_object_provider.dart:208:29: Warning: Operand of null-aware operation '!' has type 'String' which excludes null.
    final oldDbPath = join((await getDatabasesPath())!, '$databaseName.db');

Version: 3.0.0-nullsafety.1

Platform:

  • [✓] 📱 iOS
  • [✓] 🤖 Android

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