From 13889707847a94603a489391474bc5f7131c97e4 Mon Sep 17 00:00:00 2001 From: Pavel Tomin Date: Mon, 16 Dec 2024 17:44:08 -0600 Subject: [PATCH] fix one crash and introduce another --- .../mesh/generators/VTKEmbeddedSurfaceBlockUtilities.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coreComponents/mesh/generators/VTKEmbeddedSurfaceBlockUtilities.cpp b/src/coreComponents/mesh/generators/VTKEmbeddedSurfaceBlockUtilities.cpp index 90103124d9..514306d37d 100644 --- a/src/coreComponents/mesh/generators/VTKEmbeddedSurfaceBlockUtilities.cpp +++ b/src/coreComponents/mesh/generators/VTKEmbeddedSurfaceBlockUtilities.cpp @@ -33,7 +33,7 @@ void importEmbeddedFractureNetwork( string const & embeddedSurfaceBlockName, //1.Get EDFM vertices vtkUnstructuredGrid * grid = vtkUnstructuredGrid::SafeDownCast( embeddedSurfaceMesh ); vtkPoints * const nodes = grid->GetPoints(); - vtkIdType numNodes = nodes->GetNumberOfPoints(); + vtkIdType numNodes = nodes ? nodes->GetNumberOfPoints() : 0; ArrayOfArrays< localIndex > elem2dToNodes( numEdfmFracs ); for( vtkIdType i = 0; i < numEdfmFracs; ++i )