Skip to content

Commit 6b1a014

Browse files
committed
Handle null data in file storage
1 parent 33e1033 commit 6b1a014

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/com/rtm516/mcxboxbroadcast/core/storage/FileStorageManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private String read(String file) throws IOException {
3131
private void write(String file, String data) throws IOException {
3232
Path filePath = Paths.get(cacheFolder, file);
3333
// Cleanup the file if the data is empty
34-
if (data.isBlank()) {
34+
if (data == null || data.isBlank()) {
3535
Files.deleteIfExists(filePath);
3636
return;
3737
}

0 commit comments

Comments
 (0)