mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-25 16:19:58 +08:00
Analytics - use 'Unknown' when screen name is empty
Instead of reporting this to Sentry. This seems to be rather common.
This commit is contained in:
@ -168,9 +168,8 @@ class AnalyticsRouteObserver extends RouteObserver<PageRoute<dynamic>> {
|
||||
screenName = "/search";
|
||||
}
|
||||
|
||||
assert(screenName != null, "Screen name is null $route");
|
||||
if (screenName == null) {
|
||||
logExceptionWarning(Exception('Route Name is Empty'), StackTrace.current);
|
||||
screenName = 'Unknown';
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user