Ver Fonte

handle null config

Neeraj Gupta há 2 anos atrás
pai
commit
30e0d9b59a
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 1 1
      lib/core/error-reporting/super_logging.dart
  2. 2 2
      pubspec.lock

+ 1 - 1
lib/core/error-reporting/super_logging.dart

@@ -209,7 +209,7 @@ class SuperLogging {
   }
   }
 
 
   static void setUserID(String userID) async {
   static void setUserID(String userID) async {
-    if (config.sentryDsn != null) {
+    if (config?.sentryDsn != null) {
       Sentry.configureScope((scope) => scope.user = SentryUser(id: userID));
       Sentry.configureScope((scope) => scope.user = SentryUser(id: userID));
       $.info("setting sentry user ID to: $userID");
       $.info("setting sentry user ID to: $userID");
     }
     }

+ 2 - 2
pubspec.lock

@@ -733,7 +733,7 @@ packages:
     description:
     description:
       path: "."
       path: "."
       ref: HEAD
       ref: HEAD
-      resolved-ref: "18a50c3a7e7a36d61f09a93733ef7c4f0516392e"
+      resolved-ref: "669388e102cfc832c06e2f3085a5b15d8620dde3"
       url: "https://github.com/ente-io/motionphoto.git"
       url: "https://github.com/ente-io/motionphoto.git"
     source: git
     source: git
     version: "0.0.1"
     version: "0.0.1"
@@ -911,7 +911,7 @@ packages:
       name: photo_manager
       name: photo_manager
       url: "https://pub.dartlang.org"
       url: "https://pub.dartlang.org"
     source: hosted
     source: hosted
-    version: "2.1.4"
+    version: "2.1.1"
   photo_view:
   photo_view:
     dependency: "direct main"
     dependency: "direct main"
     description:
     description: