Fix IOException: Stream closed

This commit is contained in:
Junhyeong Lim 2017-12-08 02:12:46 +09:00
parent 01b7b04dfc
commit 6d7e73d8b2
2 changed files with 4 additions and 4 deletions

View File

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

View File

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