Skip to content

Commit d02fc6d

Browse files
committed
fix: do not convert results that are already a JsonNode
1 parent 671568f commit d02fc6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/flowingcode/vaadin/jsonmigration/JsonMigrationHelper25.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public JsonValue convertToJsonValue(Object object) {
6666
@SuppressWarnings("unchecked")
6767
@Override
6868
public JsonValue convertToClientCallableResult(JsonValue object) {
69-
if (object == null) {
70-
return null;
69+
if (object == null || object instanceof JsonNode) {
70+
return object;
7171
} else {
7272
switch (object.getType()) {
7373
case OBJECT:

0 commit comments

Comments
 (0)