mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-8854 possible null pointer dereference
X-SVN-Rev: 30924
This commit is contained in:
parent
698b723ba9
commit
f24d42939c
1 changed files with 3 additions and 1 deletions
|
@ -514,7 +514,9 @@ public abstract class UResourceBundle extends ResourceBundle {
|
|||
|
||||
if (ROOT_CACHE != null) {
|
||||
m = ROOT_CACHE.get();
|
||||
} else {
|
||||
}
|
||||
|
||||
if (m == null) {
|
||||
m = new HashMap<String, Integer>();
|
||||
ROOT_CACHE = new SoftReference<Map<String, Integer>>(m);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue