Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
Fix a NPE when no rating was available after checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitletondor committed Oct 14, 2018
1 parent cdc316d commit a2d012e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/page/home/profile/profilepage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ class _ProfilePageState extends ViewState<ProfilePage, ProfileViewModel, Profile
Offstage(
offstage: checkInToRate.rating == null,
child: RatingStars(
rating: checkInToRate.rating,
rating: checkInToRate.rating ?? 0,
size: 18.0,
paddingBetweenStars: 0.0,
alignment: MainAxisAlignment.start,
Expand Down

0 comments on commit a2d012e

Please sign in to comment.