fix
This commit is contained in:
parent
5facec73e4
commit
a8a77add39
1 changed files with 3 additions and 1 deletions
|
@ -127,7 +127,9 @@ public class ServerInfoAdminResource {
|
||||||
rep.setId(pi.getId());
|
rep.setId(pi.getId());
|
||||||
ConfiguredProvider configured = (ConfiguredProvider)pi;
|
ConfiguredProvider configured = (ConfiguredProvider)pi;
|
||||||
rep.setHelpText(configured.getHelpText());
|
rep.setHelpText(configured.getHelpText());
|
||||||
rep.setProperties(ModelToRepresentation.toRepresentation(configured.getConfigProperties()));
|
List<ProviderConfigProperty> configProperties = configured.getConfigProperties();
|
||||||
|
if (configProperties == null) configProperties = Collections.EMPTY_LIST;
|
||||||
|
rep.setProperties(ModelToRepresentation.toRepresentation(configProperties));
|
||||||
List<ComponentTypeRepresentation> reps = info.getComponentTypes().get(spi.getProviderClass().getName());
|
List<ComponentTypeRepresentation> reps = info.getComponentTypes().get(spi.getProviderClass().getName());
|
||||||
if (reps == null) {
|
if (reps == null) {
|
||||||
reps = new LinkedList<>();
|
reps = new LinkedList<>();
|
||||||
|
|
Loading…
Reference in a new issue