JSR-356 - fixing NPE on Extension.getParameters()
This commit is contained in:
parent
5d45486b8d
commit
b3aee8e4d5
|
@ -53,7 +53,7 @@ public class JsrExtension implements Extension
|
||||||
}
|
}
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
private List<Parameter> parameters;
|
private List<Parameter> parameters = new ArrayList<>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A configured extension
|
* A configured extension
|
||||||
|
@ -61,7 +61,6 @@ public class JsrExtension implements Extension
|
||||||
public JsrExtension(ExtensionConfig cfg)
|
public JsrExtension(ExtensionConfig cfg)
|
||||||
{
|
{
|
||||||
this.name = cfg.getName();
|
this.name = cfg.getName();
|
||||||
this.parameters = new ArrayList<>();
|
|
||||||
if (cfg.getParameters() != null)
|
if (cfg.getParameters() != null)
|
||||||
{
|
{
|
||||||
for (Map.Entry<String, String> entry : cfg.getParameters().entrySet())
|
for (Map.Entry<String, String> entry : cfg.getParameters().entrySet())
|
||||||
|
|
Loading…
Reference in New Issue