File: helpers/src/_nc_cntr.c
Function: build_cntr_list_v2
Error: calling PyList_SetItem with NULL as argument 1 (all_contours) at helpers/src/_nc_cntr.c:1447
1423 static PyObject *
1424 build_cntr_list_v2(long *np, double *xp, double *yp, int nparts, long ntotal)
1425 {
1426     PyObject *all_contours;
1427     PyArrayObject *xyv;
1428     npy_intp dims[2];
1429     int i;
1430     long j, k;
1431 
1432     all_contours = PyList_New(nparts);
when PyList_New() fails
1433 
1434     k = 0;
1435     for (i = 0; i < nparts; i++)
when considering range: 1 <= value <= 0x7fffffff
taking True path
1436     {
1437         dims[0] = np[i];
when treating unknown long int * from helpers/src/_nc_cntr.c:1437 as non-NULL
1438         dims[1] = 2;
1439         xyv = (PyArrayObject *) PyArray_SimpleNew(2, dims, PyArray_DOUBLE);
when treating unknown void * * from helpers/src/_nc_cntr.c:1439 as non-NULL
when treating unknown void * * from helpers/src/_nc_cntr.c:1439 as non-NULL
when call succeeds
1440         if (xyv == NULL)  goto error;
taking False path
1441         for (j = 0; j < dims[0]; j++)
when considering range: -0x8000000000000000 <= value <= 0
taking False path
1442         {
1443             ((double *)xyv->data)[2*j] = xp[k];
1444             ((double *)xyv->data)[2*j+1] = yp[k];
1445             k++;
1446         }
1447         if (PyList_SetItem(all_contours, i, (PyObject *)xyv)) goto error;
calling PyList_SetItem with NULL as argument 1 (all_contours) at helpers/src/_nc_cntr.c:1447
PyList_SetItem() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type
found 1 similar trace(s) to this
1448     }
1449     return all_contours;
1450 
1451     error:
1452     Py_XDECREF(all_contours);
1453     return NULL;
1454 }