[mod_python] scan-build: Called C++ object pointer is null
This commit is contained in:
parent
94337b33fb
commit
0d105c5683
|
@ -79,3 +79,11 @@
|
||||||
return resultobj;
|
return resultobj;
|
||||||
fail:
|
fail:
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@@ -10492,6 +10492,7 @@ SWIGINTERN PyObject *_wrap_Session_setSelf(PyObject *SWIGUNUSEDPARM(self), PyObj
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_setSelf" "', argument " "1"" of type '" "PYTHON::Session *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< PYTHON::Session * >(argp1);
|
||||||
|
+ if (!arg1) SWIG_exception_fail(SWIG_ValueError, "in method '" "Session_setSelf" "', argument " "1"" is NULL");
|
||||||
|
arg2 = obj1;
|
||||||
|
(arg1)->setSelf(arg2);
|
||||||
|
resultobj = SWIG_Py_Void();
|
||||||
|
|
|
@ -10492,6 +10492,7 @@ SWIGINTERN PyObject *_wrap_Session_setSelf(PyObject *SWIGUNUSEDPARM(self), PyObj
|
||||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_setSelf" "', argument " "1"" of type '" "PYTHON::Session *""'");
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_setSelf" "', argument " "1"" of type '" "PYTHON::Session *""'");
|
||||||
}
|
}
|
||||||
arg1 = reinterpret_cast< PYTHON::Session * >(argp1);
|
arg1 = reinterpret_cast< PYTHON::Session * >(argp1);
|
||||||
|
if (!arg1) SWIG_exception_fail(SWIG_ValueError, "in method '" "Session_setSelf" "', argument " "1"" is NULL");
|
||||||
arg2 = obj1;
|
arg2 = obj1;
|
||||||
(arg1)->setSelf(arg2);
|
(arg1)->setSelf(arg2);
|
||||||
resultobj = SWIG_Py_Void();
|
resultobj = SWIG_Py_Void();
|
||||||
|
|
Loading…
Reference in New Issue