Skip to content

Commit

Permalink
Fix possible IndexOutOfRange with dScriptArgument List.
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Mar 21, 2013
1 parent d19a155 commit 1db6c9a
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -73,6 +73,7 @@ public String as_dScriptArg() {
}

public String dScriptArgValue() {
if (isEmpty()) return "";
StringBuilder dScriptArg = new StringBuilder();
for (String item : this)
dScriptArg.append(item + "|");
Expand All @@ -91,7 +92,7 @@ public String getAttribute(Attribute attribute) {
if (attribute == null) return null;

if (attribute.startsWith("ascslist")) {
StringBuilder dScriptArg = new StringBuilder();
StringBuilder dScriptArg = new StringBuilder();
for (String item : this)
dScriptArg.append(item + ", ");
return new Element(dScriptArg.toString().substring(0, dScriptArg.length() - 2))
Expand Down

0 comments on commit 1db6c9a

Please sign in to comment.