mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-22 09:08:03 +01:00
Fix IOException: Stream closed
This commit is contained in:
parent
01b7b04dfc
commit
6d7e73d8b2
@ -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"
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user