NIHVIVO-2470 Restore parameter type checking on DumpDirective and HelpDirective. Handle undefined variables by assigning value = "Undefined."
This commit is contained in:
parent
84f779238c
commit
d64d45d8e6
4 changed files with 21 additions and 7 deletions
|
@ -83,8 +83,7 @@ public abstract class BaseDumpDirective implements TemplateDirectiveModel {
|
|||
METHOD("Method"),
|
||||
NUMBER("Number"),
|
||||
SEQUENCE("Sequence"),
|
||||
STRING("String"),
|
||||
UNDEFINED("Undefined");
|
||||
STRING("String");
|
||||
|
||||
private final String type;
|
||||
|
||||
|
@ -128,7 +127,6 @@ public abstract class BaseDumpDirective implements TemplateDirectiveModel {
|
|||
Map<String, Object> value = new HashMap<String, Object>();
|
||||
|
||||
if (model == null) {
|
||||
value.put(Key.TYPE.toString(), Type.UNDEFINED);
|
||||
value.put(Key.VALUE.toString(), VALUE_UNDEFINED);
|
||||
|
||||
// TemplateMethodModel and TemplateDirectiveModel objects can only be
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue