diff --git a/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java b/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java index 9d1db66f4..712246cdf 100644 --- a/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java +++ b/src/main/java/world/bentobox/bentobox/database/yaml/YamlDatabaseHandler.java @@ -153,7 +153,7 @@ public class YamlDatabaseHandler extends AbstractDatabaseHandler { continue; } // Get the getter and setters for this field using the JavaBeans system - PropertyDescriptor propertyDescriptor = new PropertyDescriptor(field.getName(), dataObject); + PropertyDescriptor propertyDescriptor = new PropertyDescriptor((String)field.getName(), dataObject); // Get the write method Method method = propertyDescriptor.getWriteMethod(); /*