From 30e0d9b59a6c081773e077c8bd396a34d8a84064 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 26 Sep 2022 14:12:10 +0530 Subject: [PATCH] handle null config --- lib/core/error-reporting/super_logging.dart | 2 +- pubspec.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/error-reporting/super_logging.dart b/lib/core/error-reporting/super_logging.dart index cee59567f..10125cf73 100644 --- a/lib/core/error-reporting/super_logging.dart +++ b/lib/core/error-reporting/super_logging.dart @@ -209,7 +209,7 @@ class SuperLogging { } static void setUserID(String userID) async { - if (config.sentryDsn != null) { + if (config?.sentryDsn != null) { Sentry.configureScope((scope) => scope.user = SentryUser(id: userID)); $.info("setting sentry user ID to: $userID"); } diff --git a/pubspec.lock b/pubspec.lock index fe90ba755..1a855fc11 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -733,7 +733,7 @@ packages: description: path: "." ref: HEAD - resolved-ref: "18a50c3a7e7a36d61f09a93733ef7c4f0516392e" + resolved-ref: "669388e102cfc832c06e2f3085a5b15d8620dde3" url: "https://github.com/ente-io/motionphoto.git" source: git version: "0.0.1" @@ -911,7 +911,7 @@ packages: name: photo_manager url: "https://pub.dartlang.org" source: hosted - version: "2.1.4" + version: "2.1.1" photo_view: dependency: "direct main" description: