Skip to content

Commit

Permalink
avoid potential argument bork
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Oct 18, 2020
1 parent 4ae15e5 commit ffc0574
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -40,6 +40,10 @@ public Argument clone() {

public boolean canBeElement = true;

public void unsetValue() {
raw_value = null;
}

public String getRawValue() {
requireValue();
return raw_value;
Expand Down
Expand Up @@ -86,6 +86,9 @@ public List<Argument> getProcessedArgs() {
if (arg.object instanceof ElementTag && arg.prefix == null) {
arg.fillStr(arg.object.toString());
}
else {
arg.unsetValue();
}
arg.canBeElement = arg.object instanceof ElementTag;
}
return aHArgs;
Expand Down

0 comments on commit ffc0574

Please sign in to comment.