AOSSIE-Org / AOSSIE-Org/EduAid

[BUG]: Unsafe string handling causing runtime errors

Aperta
#601 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
JavaScript
Stelle
171
Fork
425
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.