Do not panic if there is no text on the line; closes pterodactyl/panel#2369

This commit is contained in:
Dane Everitt 2020-09-22 21:01:32 -07:00
parent 522c6c17e4
commit 342c3ea565
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -437,8 +437,7 @@ func (f *ConfigurationFile) parsePropertiesFile(path string) error {
scanner := bufio.NewScanner(f2)
for scanner.Scan() {
text := scanner.Text()
if text[0] != '#' {
if len(text) > 0 && text[0] != '#' {
break
}