Skip to content

Commit e1efaa3

Browse files
authored
Workaround for issue #3642. (#3670)
For some reason, there are nil values stored in the uidMatrix, which results in a segmentation fault when trying to access the Uids field. The root cause of this issue is still unclear but this change adds an additional check to prevent the segmentation fault.
1 parent 85e0b45 commit e1efaa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

query/groupby.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ func (sg *SubGraph) formResult(ul *pb.List) (*groupResults, error) {
221221
if algo.IndexOf(ul, srcUid) < 0 {
222222
continue
223223
}
224+
224225
ul := child.uidMatrix[i]
225-
for _, uid := range ul.Uids {
226+
for _, uid := range ul.GetUids() {
226227
dedupMap.addValue(attr, types.Val{Tid: types.UidID, Value: uid}, srcUid)
227228
}
228229
}

0 commit comments

Comments
 (0)