JSR-356 - fixing NPE on Extension.getParameters()

This commit is contained in:
Joakim Erdfelt 2013-07-15 10:41:40 -07:00
parent 5d45486b8d
commit b3aee8e4d5
1 changed files with 1 additions and 2 deletions

View File

@ -53,7 +53,7 @@ public class JsrExtension implements Extension
}
private final String name;
private List<Parameter> parameters;
private List<Parameter> parameters = new ArrayList<>();
/**
* A configured extension
@ -61,7 +61,6 @@ public class JsrExtension implements Extension
public JsrExtension(ExtensionConfig cfg)
{
this.name = cfg.getName();
this.parameters = new ArrayList<>();
if (cfg.getParameters() != null)
{
for (Map.Entry<String, String> entry : cfg.getParameters().entrySet())