Skip to content

Commit

Permalink
Rethrow exception if no fallbackUrl is defined (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
envomer authored Jun 13, 2023
1 parent 359feda commit ba51b15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class FlutterMapNetworkImageProvider
headers: headers,
);
} catch (_) {
if (useFallback) rethrow;
if (useFallback || fallbackUrl == null) rethrow;
return _loadAsync(key, chunkEvents, decode, useFallback: true);
}

Expand Down

0 comments on commit ba51b15

Please sign in to comment.