fix #6: ChannelListView NULL error when a channel has no messages

This commit is contained in:
Salvatore Giordano
2020-03-15 11:43:52 +01:00
parent 0952c0d5e1
commit 38300939d3
4 changed files with 67 additions and 64 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ class _ChannelListViewState extends State<ChannelListView> {
return widget.errorBuilder(snapshot.error);
}
String message = snapshot.error.toString();
var message = snapshot.error.toString();
if (snapshot.error is DioError) {
final dioError = snapshot.error as DioError;
if (dioError.type == DioErrorType.RESPONSE) {