You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug, including details regarding any error messages, version, and platform.
graphar::builder::Vertex provides a default constructor that does not initialize id_. However, GetId() can still be called and may return an uninitialized value, which is undefined behavior.
graphar::builder::Vertex also provides SetId(IdType id), but SetId does not set empty_ to false. This seems inconsistent with the Vertex(IdType id) constructor (which sets empty_ = false) and is likely not the expected behavior.
Describe the bug, including details regarding any error messages, version, and platform.
graphar::builder::Vertexprovides a default constructor that does not initializeid_. However,GetId()can still be called and may return an uninitialized value, which is undefined behavior.incubator-graphar/cpp/src/graphar/high-level/vertices_builder.h
Lines 52 to 68 in 7bad8ec
graphar::builder::Vertexalso providesSetId(IdType id), butSetIddoes not setempty_to false. This seems inconsistent with theVertex(IdType id)constructor (which setsempty_ = false) and is likely not the expected behavior.incubator-graphar/cpp/src/graphar/high-level/vertices_builder.h
Lines 70 to 75 in 7bad8ec
Component(s)
C++