Skip to content

Commit

Permalink
Fix null error
Browse files Browse the repository at this point in the history
  • Loading branch information
abc873693 committed Jun 3, 2020
1 parent 1b8d340 commit 6affa40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pages/bus/bus_reservations_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ class BusReservationsPageState extends State<BusReservationsPage>
FirebaseConstants.CAN_USE_BUS,
FirebaseConstants.YES,
);
busReservationsData.save(Helper.username);
busReservationsData?.save(Helper.username);
},
onFailure: (DioError e) {
if (mounted)
Expand Down

0 comments on commit 6affa40

Please sign in to comment.