We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent debfc3b commit 9baf4a9Copy full SHA for 9baf4a9
server/src/main/java/com/vaadin/ui/renderers/TextRenderer.java
@@ -52,9 +52,12 @@ public TextRenderer(String nullRepresentation) {
52
public JsonValue encode(Object value) {
53
if (value == null) {
54
return super.encode(null);
55
- } else {
56
- return Json.create(value.toString());
57
}
+ String stringValue = value.toString();
+ if (stringValue == null) {
58
+ return super.encode(null);
59
+ }
60
+ return Json.create(stringValue);
61
62
63
@Override
0 commit comments