git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2886 f5eafffb-2e1d-0410-98e4-8ec43c5233c4

This commit is contained in:
sjfink 2008-06-12 16:04:17 +00:00
parent a6a8c11393
commit ad5772f675
1 changed files with 2 additions and 1 deletions

View File

@ -72,7 +72,8 @@ public class Table<T> implements Cloneable {
result.append("\n");
for (int j = 0; j < getNumberOfRows(); j++) {
for (int i = 0; i < getNumberOfColumns(); i++) {
StringBuffer element = new StringBuffer(getElement(j, i).toString());
T e = getElement(j, i);
StringBuffer element = e == null ? new StringBuffer() : new StringBuffer(e.toString());
StringStuff.padWithSpaces(element, format[i]);
result.append(element);
}