Skip to content

fix(backup): add array fallback to avoid undefined find crash in resume storage#26

Open
UTKARSHH20 wants to merge 1 commit into
Mayank10123:mainfrom
UTKARSHH20:fix-resume-backup-crash
Open

fix(backup): add array fallback to avoid undefined find crash in resume storage#26
UTKARSHH20 wants to merge 1 commit into
Mayank10123:mainfrom
UTKARSHH20:fix-resume-backup-crash

Conversation

@UTKARSHH20

Copy link
Copy Markdown

This pull request resolves the crash occurring during resume backup on Mega.nz when the folder structure is newly initialized or empty.

Changes

  • Added safe array fallback using || [] when accessing .children on storage.root and rootFolder in server/routes/analyzeRoutes.js.
  • Prevents the asynchronous backup IIFE block from crashing with a TypeError when .find() is called.

Closes #25

@vercel

vercel Bot commented May 20, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the mayank10123's projects Team on Vercel.

A member of the Team first needs to authorize it.

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: Node server crashes during resume evaluation if Mega.nz storage root is empty

1 participant