Skip to content

Check null hierarchy entry, even for wrapped class

David Gobbi requested to merge dgobbi/vtk:unused-declaration into master

It is possible (though rare/inadvisable) for a class to be wrapped by vtkWrapPython even though it was not seen by vtkWrapHierarchy. This fixes a dereferenced null pointer from !7888 (merged), where vtkMPI4PyCommunicator uses this conditional compilation:

#if !defined(__VTK_WRAP__) || defined(__VTK_WRAP_PYTHON__)

Merge request reports

Loading