소스 검색

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 년 전
부모
커밋
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();
}
}

Loading…
취소
저장