Skip to content

Commit

Permalink
nullPointerException fix
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrrys committed Mar 12, 2024
1 parent 09b59e4 commit 08ffcf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pages/scan/companies_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ class CompaniesList extends StatelessWidget {
),
),
),
RemoteButton(RemoteButtonState(state.list.first.donate, state.list.first.code))
RemoteButton(RemoteButtonState(
state.list.firstOrNull?.donate, state.list.firstOrNull?.code))
]);
}

Expand Down

0 comments on commit 08ffcf8

Please sign in to comment.