Skip to content

Commit

Permalink
Merge pull request #1225 from breez/remote-server-null
Browse files Browse the repository at this point in the history
fix null issue
  • Loading branch information
ubbabeck authored Oct 12, 2023
2 parents 100160f + 17d036e commit d30d6f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.16.4</string>
<string>0.16.5</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ class SecurityAndBackupPageState extends State<SecurityAndBackupPage>
}

final backupSettings = backupSnapshot.data;
final isRemoteServer =
backupSettings.backupProvider?.isRemoteServer;
final isRemoteServer = (backupSettings != null &&
backupSettings.backupProvider.isRemoteServer);

return ListView(
children: [
Expand Down
3 changes: 2 additions & 1 deletion lib/widgets/enable_backup_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class EnableBackupDialogState extends State<EnableBackupDialog> {
}

final backupSettings = snapshot.data;
bool isRemoteServer = backupSettings.backupProvider?.isRemoteServer;
bool isRemoteServer = (backupSettings != null &&
backupSettings.backupProvider.isRemoteServer);

return AlertDialog(
titlePadding: const EdgeInsets.fromLTRB(24.0, 22.0, 0.0, 16.0),
Expand Down

0 comments on commit d30d6f3

Please sign in to comment.