Merge pull request #118 from EntryPointKR/master

Fix YAMLException
This commit is contained in:
tastybento 2017-12-08 17:43:41 -08:00 committed by GitHub
commit b3da4b721a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -102,7 +102,7 @@ adminInfo:
isUnlocked: "Insel ist nicht abgeschlossen"
isUnprotected: "Insel ist nicht Purge-geschützt"
lastLogin: "Letzter Login"
maxSize: "Insel maximale Größe (Distanz)
maxSize: "Insel maximale Größe (Distanz)"
player: "Spieler"
teamLeader: "Teamleiter"
teamMembers: "Teammitglieder"

View File

@ -167,7 +167,7 @@ public class YamlResourceBundle extends ResourceBundle {
String resourceName = toResourceName(bundleName, format);
InputStream stream = loader.getResourceAsStream(resourceName);
try {
return new YamlResourceBundle(stream);
return stream != null ? new YamlResourceBundle(stream) : null;
} finally {
if (stream != null) {
stream.close();