Merge pull request #58 from ente-io/fixNPE

Fix NPE during media upload from outside app
This commit is contained in:
Neeraj Gupta 2021-09-24 14:58:00 +05:30 committed by GitHub
commit 8842d01ce0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,10 @@ class _CreateCollectionPageState extends State<CreateCollectionPage> {
@override
Widget build(BuildContext context) {
final titleSuffix = (widget.selectedFiles.files.length == 1 ? "" : "s");
final filesCount = widget.sharedFiles != null
? widget.sharedFiles.length
: widget.selectedFiles.files.length;
final titleSuffix = (filesCount == 1 ? "" : "s");
return Scaffold(
appBar: AppBar(
title: Text(