changeset 29328:71ed922db66d

maint: merge stable to default.
author John W. Eaton <jwe@octave.org>
date Mon, 25 Jan 2021 13:11:00 -0500
parents 78c660a8ba84 (current diff) 6264fb660f72 (diff)
children e84b97e37f75
files libinterp/parse-tree/oct-parse.yy
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy	Sun Jan 24 13:03:06 2021 +0100
+++ b/libinterp/parse-tree/oct-parse.yy	Mon Jan 25 13:11:00 2021 -0500
@@ -2526,6 +2526,9 @@
   void
   base_parser::statement_list (std::shared_ptr<tree_statement_list>& lst)
   {
+    if (! lst)
+      return;
+
     if (m_stmt_list)
       {
         // Append additional code to existing statement list.