소스 검색

Merge pull request #189 from hamberluo/master

fix: route null pointer
Luke Pighetti 5 년 전
부모
커밋
ce9ad69127
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/src/fluro_router.dart

+ 1 - 1
lib/src/fluro_router.dart

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