Fix issue with casting UUIDs in MongoDB backing (#443)
This commit is contained in:
parent
76b203ad10
commit
188d62c99b
@ -271,7 +271,7 @@ public class MongoDBBacking extends AbstractBacking {
|
|||||||
while (cursor.hasNext()) {
|
while (cursor.hasNext()) {
|
||||||
Document d = cursor.next();
|
Document d = cursor.next();
|
||||||
|
|
||||||
UUID uuid = UUID.fromString(d.getString("_id"));
|
UUID uuid = d.get("_id", UUID.class);
|
||||||
Map<String, Boolean> perms = revert((Map<String, Boolean>) d.get("perms"));
|
Map<String, Boolean> perms = revert((Map<String, Boolean>) d.get("perms"));
|
||||||
|
|
||||||
Set<NodeModel> nodes = new HashSet<>();
|
Set<NodeModel> nodes = new HashSet<>();
|
||||||
@ -425,7 +425,7 @@ public class MongoDBBacking extends AbstractBacking {
|
|||||||
try (MongoCursor<Document> cursor = c.find().iterator()) {
|
try (MongoCursor<Document> cursor = c.find().iterator()) {
|
||||||
while (cursor.hasNext()) {
|
while (cursor.hasNext()) {
|
||||||
Document d = cursor.next();
|
Document d = cursor.next();
|
||||||
uuids.add(UUID.fromString(d.getString("_id")));
|
uuids.add(d.get("_id", UUID.class));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user