Skip to content

Commit 18dfce6

Browse files
committed
fix unhandled NULLed estate
1 parent 6d23c8b commit 18dfce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/format.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ plpgsql_check_put_error(PLpgSQL_checkstate *cstate,
261261
PLpgSQL_execstate *estate = cstate->estate;
262262

263263

264-
if (context == NULL && estate->err_text)
264+
if (context == NULL && estate && estate->err_text)
265265
context = estate->err_text;
266266

267267
/* ignore warnings when is not requested */

0 commit comments

Comments
 (0)