mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-06 06:39:15 +01:00
Fix plugin wizard for foreign languages (#2086)
This fixes the plugin wizard, that throws a NullPointerException for other languages then Englisch or German.
This commit is contained in:
@@ -59,6 +59,9 @@ public class PluginSetDtoMapper {
|
||||
.collect(Collectors.toList());
|
||||
|
||||
PluginSet.Description description = pluginSet.getDescriptions().get(locale.getLanguage());
|
||||
if (description == null) {
|
||||
description = pluginSet.getDescriptions().get(Locale.ENGLISH.getLanguage());
|
||||
}
|
||||
|
||||
return new PluginSetDto(pluginSet.getId(), pluginSet.getSequence(), pluginDtos, description.getName(), description.getFeatures(), pluginSet.getImages());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user