Skip to content

Commit

Permalink
fix: minor fix in link converter
Browse files Browse the repository at this point in the history
  • Loading branch information
tglman committed Sep 24, 2024
1 parent 3e6d211 commit 3cf4c6e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3cf4c6e

Please sign in to comment.