Skip to content

Null-Pointer Crash on Empty Meeting Lists - #644

Open
aniket866 wants to merge 1 commit into
containers:mainfrom
aniket866:fix/null-pointer-crash
Open

Null-Pointer Crash on Empty Meeting Lists#644
aniket866 wants to merge 1 commit into
containers:mainfrom
aniket866:fix/null-pointer-crash

Conversation

@aniket866

@aniket866 aniket866 commented Aug 5, 2026

Copy link
Copy Markdown

Closes #639

  • File Reference: CommunityMeetingsCardGrid/index.tsx

  • Code Pointer:

    for (let i = 0; i < 2; i++) {
      let meeting = MeetingDropdownOptions.shift();
      communityMeetingsData.push({
        date: meeting?.date,
  • Technical Reason & Impact: The component shifts items out of lists without validating their lengths first. If an array is empty or holds a single item, shift() yields undefined. Consequently, SubcardGrid passes undefined to the Date constructor, returning NaN. DayOfTheWeek then returns undefined, which gets passed into children components, producing empty links and text sections.

Signed-off-by: aniket866 <iamaniketkumarmaner@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Null-Pointer Crash on Empty Meeting Lists

1 participant