Skip to content
Snippets Groups Projects
Commit ebdf604b authored by David Gobbi's avatar David Gobbi Committed by Chuck Atkins
Browse files

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 650a1db6
No related branches found
No related tags found
No related merge requests found
......@@ -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))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment