ICU-8854 possible null pointer dereference

X-SVN-Rev: 30924
This commit is contained in:
Abhinav Gupta 2011-11-04 15:18:01 +00:00
parent 698b723ba9
commit f24d42939c

View file

@ -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);
}