Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ public Object getData(String path) {
try {
Object data;
if(_curator.checkExists().forPath(path)!=null) {
data = JSONValue.parseWithException(new String(_curator.getData().forPath(path), "UTF-8"));
// intentionally using parse() instead of parseWithException() to handle error cases as null
// this have been used from the start of Trident so we could treat it as safer way
data = JSONValue.parse(new String(_curator.getData().forPath(path), "UTF-8"));
} else {
data = null;
}
Expand Down