Skip to content

Commit

Permalink
[skip ci] set default value to avoid crash in debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 12, 2024
1 parent aa1d560 commit 30b743a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ Future<void> main() async {
mainLogger.info("Detected Environment: $environment");
await SentryFlutter.init(
(options) async {
options.dsn = const String.fromEnvironment('SENTRY_DSN');
options.dsn = const String.fromEnvironment('SENTRY_DSN', defaultValue: "");
options.addIntegration(LoggingIntegration());
options.enableBreadcrumbTrackingForCurrentPlatform();
options.debug = kDebugMode;
Expand Down

0 comments on commit 30b743a

Please sign in to comment.