matplotlib_nullptr_s390x
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Tue, 14 Jul 2026 09:40:34 +0000 (11:40 +0200)
committerDrew Parsons <dparsons@debian.org>
Tue, 14 Jul 2026 09:40:34 +0000 (11:40 +0200)
===================================================================

Gbp-Pq: Name matplotlib_nullptr_s390x.patch

Rendering/Matplotlib/vtkMatplotlibMathTextUtilities.cxx

index 3e6b219f047e8969839609a08dd4b7796994eb21..714723e5d45040fba41ecbabb1c745060659d28c 100644 (file)
@@ -1023,6 +1023,12 @@ bool vtkMatplotlibMathTextUtilities::RenderOneCell(vtkImageData* image, int bbox
         return false;
       }
 
+      if (ptr == nullptr)
+      {
+       vtkErrorMacro("image returned null ScalarPointer.");
+       return false;
+      }
+
       // Background, do not load python data
       if (row > pythonRowStart || col < pythonColStart || row <= pythonRowEnd ||
         col >= pythonColEnd)