flutter_cached_network_image icon indicating copy to clipboard operation
flutter_cached_network_image copied to clipboard

Null check operator used on a null value

Open zhancheng opened this issue 3 years ago • 8 comments

🐛 Bug Report

app crash stack info

Flutter Exception

Null check operator used on a null value

#0 MultiImageStreamCompleter._handleAppFrame (package:cached_network_image/src/image_provider/multi_image_stream_completer.dart:91)


flutter doctor

 Flutter (Channel stable, 2.0.3, on Mac OS X 10.15.7 19H524 darwin-x64, locale zh-Hans-CN)

plaform

android

zhancheng avatar Apr 27 '21 10:04 zhancheng

i find the source code below , maybe the _nextFrame will be null

 _emitFrame(ImageInfo(image: _nextFrame!.image, scale: _scale));

zhancheng avatar Apr 27 '21 10:04 zhancheng

@zhancheng do you have a reproducible example? The _nextFrame should not be null here. We can easily add a null check, but I guess that will still have a bug somehow.

renefloor avatar Apr 30 '21 11:04 renefloor

@renefloor

try this .

http://dl5.weshineapp.com/300/3de6b94c5fbe855e562be53f16f7f448.webp?v=60640903e7912

http://dl5.weshineapp.com/300/e008acbadfa5177a567fe3a5c97c52b4.webp?v=605ad5625854f

zhancheng avatar May 06 '21 07:05 zhancheng

I also encountered this problem.

a27919478 avatar Nov 10 '21 06:11 a27919478

I also have this problem.

AzadCoder avatar Nov 25 '21 16:11 AzadCoder

also have this problem.

chuckern avatar Feb 08 '22 06:02 chuckern

3.2.0, also have this problem.

limeng99 avatar Aug 08 '23 12:08 limeng99

Same problem

feduke-nukem avatar Oct 26 '23 18:10 feduke-nukem