Closed wtimme closed 1 year ago
This fixes #16 by returning early in case the save file is empty. Running .split("\n") produces an array with one element, which is null. As a consequence, executing .replace() on null causes a crash.
.split("\n")
null
.replace()
This fixes #16 by returning early in case the save file is empty. Running
.split("\n")
produces an array with one element, which isnull
. As a consequence, executing.replace()
onnull
causes a crash.