compose_image_picker icon indicating copy to clipboard operation
compose_image_picker copied to clipboard

NullPointerException

Open asker517 opened this issue 1 year ago • 0 comments

感谢大佬分享的这个很棒的裤子~使用过程我发现了一个小问题 如果媒体文件直接放在存储SD卡根目录,会产生一个NPE,AssetLoader中:

 assets.add(
                    AssetInfo(
                        id = id,
                        uriString = contentUri.toString(),
                        filepath = it.getString(indexFilepath),
                        filename = it.getString(indexFilename),
                        date = it.getLong(indexDate),
                        mediaType = mediaType,
                        mimeType = it.getString(indexMimeType),
                        size = it.getLong(indexSize),
                        duration = it.getLong(indexDuration),
                        directory = it.getString(indexDirectory), //NPE Here
                    )
                )

这里可以修复一下

asker517 avatar Sep 18 '24 10:09 asker517