From 965ff04bccae2e30b04d47b05974409a4d7dda5e Mon Sep 17 00:00:00 2001 From: Luck Date: Fri, 17 Mar 2017 20:54:40 +0000 Subject: [PATCH] Fix ClassCastException with MongoDB user search --- .../lucko/luckperms/common/storage/backing/MongoDBBacking.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/backing/MongoDBBacking.java b/common/src/main/java/me/lucko/luckperms/common/storage/backing/MongoDBBacking.java index fb7fae64..2d178fa6 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/backing/MongoDBBacking.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/backing/MongoDBBacking.java @@ -335,7 +335,7 @@ public class MongoDBBacking extends AbstractBacking { while (cursor.hasNext()) { Document d = cursor.next(); - UUID holder = UUID.fromString(d.getString("_id")); + UUID holder = d.get("_id", UUID.class); Map perms = revert((Map) d.get("perms")); for (Map.Entry e : perms.entrySet()) {