This commit is contained in:
Jan Vonka
2007-09-14 11:22:26 +00:00
parent 3515f388ff
commit 4c3222257e
5 changed files with 318 additions and 3 deletions

View File

@@ -200,8 +200,11 @@ public final class ResourceBundleWrapper extends ResourceBundle
// Note: path here is XPath for selectNodes query
path = PATH + "/cm:" + customName;
InputStream is = messageService.getRepoResourceBundle(Repository.getStoreRef(), path, locale);
customBundle = new PropertyResourceBundle(is);
is.close();
if (is != null)
{
customBundle = new PropertyResourceBundle(is);
is.close();
}
}
catch (Throwable t)
{