From bbe8d7a01c54e1646f9dfe709999fdda01c2b3bc Mon Sep 17 00:00:00 2001 From: Gold872 Date: Wed, 8 Nov 2023 15:44:52 -0500 Subject: [PATCH] Added null safety check in list layout loading --- lib/widgets/draggable_containers/draggable_list_layout.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/widgets/draggable_containers/draggable_list_layout.dart b/lib/widgets/draggable_containers/draggable_list_layout.dart index 708069c8..f5345b07 100644 --- a/lib/widgets/draggable_containers/draggable_list_layout.dart +++ b/lib/widgets/draggable_containers/draggable_list_layout.dart @@ -226,7 +226,11 @@ class DraggableListLayout extends DraggableLayoutContainer { 'TOP'; } - for (Map childData in jsonData['children']) { + for (Map? childData in jsonData['children']) { + if (childData == null) { + continue; + } + children.add(nt4ContainerBuilder?.call(childData) ?? DraggableNT4WidgetContainer.fromJson( dashboardGrid: dashboardGrid,