fix NPE on HTTP API with lightweight edges
@@ -36,6 +36,7 @@ import com.orientechnologies.orient.core.serialization.OSerializableStream;
import com.orientechnologies.orient.core.serialization.serializer.OStringSerializerHelper;
import com.orientechnologies.orient.core.storage.OStorage;
+import java.util.Collections;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
@@ -114,7 +115,7 @@ public class OEdgeDelegate implements OEdge {
if (element != null) {
return element.getPropertyNames();
}
- return null;
+ return Collections.EMPTY_SET;
}
public OEdge delete() {
