Fix NPE on startup with flatfile

This commit is contained in:
Xephi
2014-08-30 04:20:17 +02:00
parent 6e17b540f5
commit 7596266d7c
3 changed files with 7 additions and 3 deletions
@@ -31,8 +31,11 @@ public class FlatFileThread extends Thread implements DataSource {
*/
private File source;
public void run() {
public FlatFileThread() {
source = new File(Settings.AUTH_FILE);
}
public void run() {
try {
source.createNewFile();
} catch (IOException e) {