Fixed potential NPE in toString, there's no guarantee that getValue() is always not null.
(transplanted from 225e3d761e2706d6c95c0cd4a1e269cea528392e)
This commit is contained in:
parent
70f93229ad
commit
36f5c84ded
|
@ -62,7 +62,7 @@ public class ListItem extends org.zkoss.zul.Listitem
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return getValue().toString();
|
return getValue() != null ? getValue().toString() : "";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue