Skip to content

Commit 5f3defb

Browse files
author
hackorum
committed
Apply fix-possible-null-dereference-allpatchs.patch
1 parent 4255812 commit 5f3defb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/backend/optimizer/path/allpaths.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2185,8 +2185,8 @@ get_cheapest_parameterized_child_path(PlannerInfo *root, RelOptInfo *rel,
21852185
required_outer,
21862186
TOTAL_COST,
21872187
false);
2188-
Assert(cheapest != NULL);
2189-
if (bms_equal(PATH_REQ_OUTER(cheapest), required_outer))
2188+
2189+
if (cheapest != NULL && bms_equal(PATH_REQ_OUTER(cheapest), required_outer))
21902190
return cheapest;
21912191

21922192
/*

0 commit comments

Comments
 (0)