chore: fix null check error in analytics download dialog (#2769)

pull/2245/head
ggurdin 6 months ago committed by GitHub
parent 0fae0355e2
commit 5c8b25a005
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -72,9 +72,10 @@ class AnalyticsDownloadDialogState extends State<AnalyticsDownloadDialog> {
fileName,
_downloadType,
);
} catch (e) {
} catch (e, s) {
ErrorHandler.logError(
e: e,
s: s,
data: {
"downloadType": _downloadType,
},
@ -205,6 +206,7 @@ class AnalyticsDownloadDialogState extends State<AnalyticsDownloadDialog> {
final allUses = constructUses.map((e) => e.uses).expand((e) => e).toList();
final List<PangeaMessageEvent> examples = [];
for (final OneConstructUse use in allUses) {
if (use.metadata.roomId == null) continue;
final Room? room = MatrixState.pangeaController.matrixState.client
.getRoomById(use.metadata.roomId!);
if (room == null) continue;

Loading…
Cancel
Save