AOSSIE-Org / AOSSIE-Org/EduAid

[BUG]: Unsafe string handling causing runtime errors

Đang mở
#601 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
JavaScript
Star
171
Fork
425
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Bug Description

### Description

Several parts of the codebase assume strings are non-empty and not None.

### Problems
- Direct indexing like `str[0]` without length checks
- Splitting strings without validation
- Calling string methods on None values

### Impact
- IndexError
- AttributeError
- TypeError

### Affected Files
- backend/Generator/server.py

### Code of Conduct

- [x] I have joined the [Discord server](https://discord.gg/hjUhu33uAn) and will post updates there
- [x] I have searched existing issues to avoid duplicates

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.