Skip to content

Commit

Permalink
fix(serving): skip PageSet check when given no filters (#5463)
Browse files Browse the repository at this point in the history
  • Loading branch information
schroederc committed Dec 1, 2022
1 parent 3730cac commit 207c04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kythe/go/serving/xrefs/xrefs_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (p *pageSet) Contains(i *srvpb.PagedCrossReferences_PageIndex) bool {

func (f *corpusPathFilter) PageSet(set *srvpb.PagedCrossReferences) *pageSet {
idx := set.GetPageSearchIndex()
if idx == nil || len(f.corpusQuery)+len(f.rootQuery)+len(f.pathQuery)+len(f.resolvedPathQuery) == 0 {
if idx == nil || f == nil || len(f.corpusQuery)+len(f.rootQuery)+len(f.pathQuery)+len(f.resolvedPathQuery) == 0 {
return nil
}

Expand Down

0 comments on commit 207c04f

Please sign in to comment.