[I KNOW this wasn't in the task, but I figured you're motivated, so here goes nothing]
When I load a file that doesn't have a predefined structure, an exception is thrown that crashes the program.
Try to catch it and handle it. My suggestion is an Error MessageBox. Before you start coding, follow the following steps:
Create a new Git branch called fix/corrupt_file_parsing_crash.
Commit to THAT branch and use this issue's ID.
Push the branch and create a Pull request here on GitHub (the top bar, next to "Code, Issues").
Implementirano je try/catch, u kodu imam "#if DEBUG" jer mi debug mode prekida izvođenje programa, a program s disable tog exceptiona radi normalno, no ja sam ručno onemogućio to pa ne znam radi li sa time.
[I KNOW this wasn't in the task, but I figured you're motivated, so here goes nothing] When I load a file that doesn't have a predefined structure, an exception is thrown that crashes the program.
Try to catch it and handle it. My suggestion is an Error MessageBox. Before you start coding, follow the following steps: