We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c750bdc commit 2209d03Copy full SHA for 2209d03
lib/model/legacy_app_data.dart
@@ -272,9 +272,13 @@ class LegacyAppDatabase {
272
// Not sure how newlines get there into the data; but empirically
273
// they do, after each 76 characters of `encodedSplit`.
274
final encoded = encodedSplit.replaceAll('\n', '');
275
- final compressedBytes = base64Decode(encoded);
276
- final uncompressedBytes = zlib.decoder.convert(compressedBytes);
277
- return utf8.decode(uncompressedBytes);
+ try {
+ final compressedBytes = base64Decode(encoded);
+ final uncompressedBytes = zlib.decoder.convert(compressedBytes);
278
+ return utf8.decode(uncompressedBytes);
279
+ } catch (_) {
280
+ return null; // TODO(log)
281
+ }
282
}
283
return item;
284
0 commit comments