1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-07-14 15:33:04 +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:
Vishesh Handa
2020-10-09 10:55:52 +02:00
parent d3a0d4fcfa
commit 1dd1366774

@ -168,9 +168,8 @@ class AnalyticsRouteObserver extends RouteObserver<PageRoute<dynamic>> {
screenName = "/search"; screenName = "/search";
} }
assert(screenName != null, "Screen name is null $route");
if (screenName == null) { if (screenName == null) {
logExceptionWarning(Exception('Route Name is Empty'), StackTrace.current); screenName = 'Unknown';
return; return;
} }