Skip to content
Snippets Groups Projects
Commit 4d64ecca authored by srosse's avatar srosse
Browse files

no-jira: remove assert exception (which can produce itself a NPE)

parent 318fd6db
No related branches found
No related tags found
No related merge requests found
......@@ -1039,7 +1039,7 @@ public class I18nManager {
*/
public void deleteProperties(Locale locale, String bundleName) {
String key = calcPropertiesFileKey(locale, bundleName);
if (log.isDebugEnabled()) log.debug("deleteProperties for key::" + key);
if (log.isDebugEnabled()) log.debug("deleteProperties for key::{}", key);
if (locale != null) { // metadata files are not in cache
// 1) Remove from cache first
......@@ -1053,8 +1053,7 @@ public class I18nManager {
// 2) Remove from filesystem
File baseDir = i18nModule.getPropertyFilesBaseDir(locale, bundleName);
if (baseDir == null) {
if (baseDir == null) { throw new AssertException("Can not delete properties file for bundle::" + bundleName + " and language::"
+ locale.toString() + " - no base directory found, probably loaded from jar!"); }
return;// nothing to do
}
File f = getPropertiesFile(locale, bundleName, baseDir);
if (f.exists()) f.delete();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment