Skip to content

Commit

Permalink
Fix parse tag with nulls
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 29, 2017
1 parent 21b2ce8 commit 60a3dea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/net/aufdemrand/denizencore/objects/dList.java
Expand Up @@ -1380,8 +1380,12 @@ public String run(Attribute attribute, dObject object) {
dList newlist = new dList();
try {
for (String str : (dList) object) {
newlist.add(ObjectFetcher.pickObjectFor(str).getAttribute(new Attribute(attribute.getContext(1),
attribute.getScriptEntry(), attribute.context)));
String objs = ObjectFetcher.pickObjectFor(str).getAttribute(new Attribute(attribute.getContext(1),
attribute.getScriptEntry(), attribute.context));
if (objs == null) {
objs = "null";
}
newlist.add(objs);
}
}
catch (Exception ex) {
Expand Down

0 comments on commit 60a3dea

Please sign in to comment.