diff --git a/core/src/main/java/com/orientechnologies/orient/core/record/impl/ODocumentInternal.java b/core/src/main/java/com/orientechnologies/orient/core/record/impl/ODocumentInternal.java index b0947e192e0..37dfb99c08f 100644 --- a/core/src/main/java/com/orientechnologies/orient/core/record/impl/ODocumentInternal.java +++ b/core/src/main/java/com/orientechnologies/orient/core/record/impl/ODocumentInternal.java @@ -125,6 +125,9 @@ public static RET rawPropertyRead(OElement element, String propertyName) { if (element == null) { return null; } + if (!(element instanceof ODocument)) { + element = element.getRecord(); + } return ((ODocument) element).rawField(propertyName); }