Skip to content

Commit 6deb205

Browse files
committed
fix: Fix null pointer exception in FileSettings
Fix a null pointer access in the `toString` method for a freshly created `FileSettings`.
1 parent bc3944d commit 6deb205

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)