Can't handle empty data file #12
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If the JSON file is empty, the application crashes.
There is no error handling for an empty data file.
The connector could add new records, but this method can't load anything if the file does not exist
So this could handle a file without records
it will crash at the get_all method
statuszeile_und_filterto main6407cf4229fixes the problem with empty or non existing files by returning empty lists