Fix a possible NPE

String.valueOf is an overloaded and the compiler unfortunately picks
the wrong one since null contains no type information.

Change-Id: Icd197eaa046421f3cfcc5bf3e7601dc5bc7486b6
This commit is contained in:
Robin Rosenberg 2013-04-05 00:07:20 +02:00 committed by Gerrit Code Review @ Eclipse.org
parent 93a27ce728
commit d90656f536
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ public String toString() {
if (tip != null)
sb.append(format());
else
sb.append(String.valueOf(null));
sb.append((Object) null);
sb.append(',').append(cost).append(']').append(' ')
.append(super.toString()).toString();
return sb.toString();