Browse Source

fix: route null pointer

hamberluo 5 years ago
parent
commit
e1239cbfef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/src/fluro_router.dart

+ 1 - 1
lib/src/fluro_router.dart

@@ -126,7 +126,7 @@ class FluroRouter {
     AppRouteMatch match = _routeTree.matchRoute(path);
     AppRouteMatch match = _routeTree.matchRoute(path);
     AppRoute route = match?.route;
     AppRoute route = match?.route;
 
 
-    if (route.transitionDuration != null) {
+    if (route?.transitionDuration != null) {
       transitionDuration = route.transitionDuration;
       transitionDuration = route.transitionDuration;
     }
     }