Commit e5537ec4 authored by David Gobbi's avatar David Gobbi

Avoid dereferencing NULL calldata pointer

This adds a check to vtkPythonCommand so that it doesn't attempt to
use the calldata pointer if the pointer is NULL.
parent f06e3ccf
......@@ -137,7 +137,7 @@ void vtkPythonCommand::Execute(vtkObject *ptr, unsigned long eventtype,
callDataTypeLiteral);
PyObject *arglist = NULL;
if (callDataTypeObj)
if (callData && callDataTypeObj)
{
if (PyInt_Check(callDataTypeObj))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment