Skip to content

Commit

Permalink
Don't use String concatenation to deal with null atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Aug 23, 2015
1 parent 20c145a commit 42ae450
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public String toString() {
if (getAtomCount() > 0) {
resultString.append(", #A:").append(getAtomCount());
for (int i = 0; i < atomCount; i++) {
resultString.append(", ").append("" + atoms[i]);
resultString.append(", ").append(atoms[i] == null ? "null" : atoms[i].toString());
}
}
resultString.append(", ").append(super.toString());
Expand Down

0 comments on commit 42ae450

Please sign in to comment.