Skip to content

Commit 279ee5a

Browse files
committed
fix #924
1 parent bfecc37 commit 279ee5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common/utils/event_utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class EventUtils {
9898
des = '';
9999
String descSpan = '';
100100

101-
int count = event.payload!.commits!.length;
101+
int count = event.payload?.commits?.length ?? 0;
102102
int maxLines = 4;
103103
int max = count > maxLines ? maxLines - 1 : count;
104104

0 commit comments

Comments
 (0)