AOSSIE-Org / AOSSIE-Org/DebateAI

Unsafe JSON Parsing Leads to entire application will crash (White Screen of Death).

未关闭
#300 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
84
派生
198
平均合并
2 天 19 小时
30 天内合并 PR
30

描述

**Location**: `frontend/src/Pages/DebateRoom.tsx `

- Issue: JSON.parse(savedState) is used on data from localStorage without a try-catch block.

- Fix: Wrap JSON.parse in a try-catch block and fallback to default state if parsing fails.

**Why: If local storage data is corrupted or the schema changes, the entire application will crash (White Screen of Death).
fix this issue**

@bhavik-mangla Please checkout this solution #299

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。