Fix CREATE EDGE from graph editor
Resolves:
@@ -158,10 +158,16 @@ public class OHttpGraphResponse extends OHttpResponse {
}
} else {
for (ORID edgeRid : edgeRids) {
- OEdge edge = edgeRid.getRecord();
+ OElement elem = edgeRid.getRecord();
+ if (elem == null) {
+ continue;
+ }
+ OEdge edge = elem.asEdge().orElse(null);
+ if (edge != null) {
printEdge(json, edge);
}
}
+ }
json.endCollection();
