|
@@ -48,6 +48,9 @@ class FaceSearchManager {
|
|
.toList();
|
|
.toList();
|
|
}).catchError(_onError);
|
|
}).catchError(_onError);
|
|
final files = List<File>();
|
|
final files = List<File>();
|
|
|
|
+ if (result == null) {
|
|
|
|
+ return throw ("Oops. Could not fetch search results.");
|
|
|
|
+ }
|
|
for (File file in result) {
|
|
for (File file in result) {
|
|
try {
|
|
try {
|
|
files.add(await FileDB.instance.getMatchingFile(
|
|
files.add(await FileDB.instance.getMatchingFile(
|