diff --git a/core/src/main/java/com/orientechnologies/orient/core/db/tool/importer/OLinkConverter.java b/core/src/main/java/com/orientechnologies/orient/core/db/tool/importer/OLinkConverter.java index e0e2ddc4e4a..01ab28715d3 100644 --- a/core/src/main/java/com/orientechnologies/orient/core/db/tool/importer/OLinkConverter.java +++ b/core/src/main/java/com/orientechnologies/orient/core/db/tool/importer/OLinkConverter.java @@ -26,7 +26,12 @@ public OIdentifiable convert(OIdentifiable value) { "select value from " + ODatabaseImport.EXPORT_IMPORT_CLASS_NAME + " where key = ?", rid.toString())) { if (resultSet.hasNext()) { - return new ORecordId((String) resultSet.next().getProperty("value")); + Object id = resultSet.next().getProperty("value"); + if (id instanceof OIdentifiable) { + return (OIdentifiable) id; + } else if (id instanceof String) { + return new ORecordId((String) id); + } } return value; }