فهرست منبع

fix: route null pointer

hamberluo 5 سال پیش
والد
کامیت
e1239cbfef
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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);
     AppRoute route = match?.route;
 
-    if (route.transitionDuration != null) {
+    if (route?.transitionDuration != null) {
       transitionDuration = route.transitionDuration;
     }