Skip to content

Commit 9a705e0

Browse files
authored
Fix getAllPrefData when the item value is null
Fix getAllPrefData when the item value is null
1 parent a8a1d7c commit 9a705e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

debug-db/src/main/java/com/amitshekhar/server/ClientServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,10 +455,10 @@ public Response getAllPrefData(String tag) {
455455
for (Map.Entry<String, ?> entry : allEntries.entrySet()) {
456456
List<String> row = new ArrayList<>();
457457
row.add(entry.getKey());
458-
row.add(entry.getValue().toString());
458+
row.add(entry.getValue() != null ? entry.getValue().toString() : "");
459459
response.rows.add(row);
460460
}
461461
return response;
462462
}
463463

464-
}
464+
}

0 commit comments

Comments
 (0)