From 3e9e662ade973eabbf46beb2e2ebc1055125b449 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 27 Jan 1999 16:48:20 +0000 Subject: [PATCH] Quick fix for subplan-related crash. --- src/backend/executor/execMain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 294b7429fe..dcc9380966 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -376,7 +376,7 @@ ExecCheckPerms(CmdType operation, if (!ok) elog(ERROR, "%s: %s", rname.data, aclcheck_error_strings[aclcheck_result]); - if (parseTree->rowMark != NULL) + if (parseTree != NULL && parseTree->rowMark != NULL) { foreach(lp, parseTree->rowMark) { -- 2.39.5