= Corrected edge case of null string parsing

This commit is contained in:
Matthew Cech
2019-04-13 12:46:17 -07:00
parent 5fd6ea0c27
commit d36de01be5
4 changed files with 12 additions and 9 deletions
+3 -4
View File
@@ -123,16 +123,15 @@ public class Localizer
try
{
String fileContents = ReadFileAsString(filename, Charset.defaultCharset());
System.out.println("File contents: " + fileContents);
if(fileContents == null)
{
File file = new File(filename);
file.createNewFile();
}
else
{
stringStore = new SectionedKeyValueStore(fileContents);
}
stringStore = new SectionedKeyValueStore(fileContents);
}
catch(IOException e)
{