AOSSIE-Org / AOSSIE-Org/EduAid

[BUG]: Unsafe string handling causing runtime errors

Open
#601 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
171
Forks
425
PR merge metrics
No merged PRs in 30d

Description

### 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.