Index: src/Parser/ParseNode.h
===================================================================
--- src/Parser/ParseNode.h	(revision fad1f145f5f674f5bad6113c497f14aae8d41ec1)
+++ src/Parser/ParseNode.h	(revision 4678c1ec3902d887b15b601755fe526cd82d4f4a)
@@ -10,6 +10,6 @@
 // Created On       : Sat May 16 13:28:16 2015
 // Last Modified By : Peter A. Buhr
-// Last Modified On : Wed Feb  2 09:15:49 2022
-// Update Count     : 905
+// Last Modified On : Tue Oct 18 14:15:37 2022
+// Update Count     : 936
 //
 
@@ -463,5 +463,9 @@
 			errors.append( e );
 		} // try
-		cur = dynamic_cast< NodeType * >( cur->get_next() );
+		const ParseNode * temp = (cur->get_next());
+		cur = dynamic_cast< const NodeType * >( temp );	// should not return nullptr
+		if ( ! cur && temp ) {							// non-homogeneous nodes ?
+			SemanticError( cur->location, "internal error, non-homogeneous nodes founds in buildList processing." );
+		} // if
 	} // while
 	if ( ! errors.isEmpty() ) {
