mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-04 11:52:41 +08:00
fix: NPE
This commit is contained in:
@@ -12,7 +12,7 @@ public interface MultipleI18nSupportEntity extends I18nSupportEntity {
|
||||
@Override
|
||||
default Map<String, String> getI18nMessages(String key) {
|
||||
Map<String, Map<String, String>> source = getI18nMessages();
|
||||
if (MapUtils.isNotEmpty(source)) {
|
||||
if (MapUtils.isEmpty(source)) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
return source.get(key);
|
||||
|
||||
Reference in New Issue
Block a user