Skip to content

Commit 5333c5a

Browse files
authored
Merge pull request #1433 from flaix/np-fix
Fix null pointer exception in FileSettings
2 parents bc3944d + 6deb205 commit 5333c5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/gitblit/FileSettings.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ protected boolean forceReload() {
227227

228228
@Override
229229
public String toString() {
230+
if (propertiesFile == null) {
231+
return "[empty]";
232+
}
230233
return propertiesFile.getAbsolutePath();
231234
}
232235
}

0 commit comments

Comments
 (0)