From 6affa400a99a8d27fbc8c2880bc4be2f454f9dbc Mon Sep 17 00:00:00 2001 From: RainVisitor Date: Wed, 3 Jun 2020 19:25:02 +0800 Subject: [PATCH] Fix null error --- lib/pages/bus/bus_reservations_page.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/bus/bus_reservations_page.dart b/lib/pages/bus/bus_reservations_page.dart index c601e8b7..a53cd194 100644 --- a/lib/pages/bus/bus_reservations_page.dart +++ b/lib/pages/bus/bus_reservations_page.dart @@ -268,7 +268,7 @@ class BusReservationsPageState extends State FirebaseConstants.CAN_USE_BUS, FirebaseConstants.YES, ); - busReservationsData.save(Helper.username); + busReservationsData?.save(Helper.username); }, onFailure: (DioError e) { if (mounted)