Просмотр исходного кода

fix: Fix null pointer exception in FileSettings

Fix a null pointer access in the `toString` method for a freshly created
`FileSettings`.
pull/1433/head
Florian Zschocke 1 год назад
Родитель
Сommit
6deb205848
1 измененных файлов: 3 добавлений и 0 удалений
  1. 3
    0
      src/main/java/com/gitblit/FileSettings.java

+ 3
- 0
src/main/java/com/gitblit/FileSettings.java Просмотреть файл

@@ -227,6 +227,9 @@ public class FileSettings extends IStoredSettings {
@Override
public String toString() {
if (propertiesFile == null) {
return "[empty]";
}
return propertiesFile.getAbsolutePath();
}
}

Загрузка…
Отмена
Сохранить