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:
parent
93a27ce728
commit
d90656f536
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue