File: helpers/src/_nc_cntr.c
Function: build_cntr_list_p
Error: calling PyList_SetItem with NULL as argument 1 (contourList) at helpers/src/_nc_cntr.c:1373
1356 static PyObject *
1357 build_cntr_list_p(long *np, double *xp, double *yp, int nparts, long ntotal)
1358 {
1359     PyObject *point, *contourList, *all_contours;
1360     int start = 0, end = 0;
1361     int i, j, k;
1362 
1363     all_contours = PyList_New(nparts);
when PyList_New() succeeds
1364 
1365     for (i = 0; i < nparts; i++)
when considering range: 1 <= value <= 0x7fffffff
taking True path
1366     {
1367         start = end;
1368         end += np[i];
when treating unknown long int * from helpers/src/_nc_cntr.c:1368 as non-NULL
1369         contourList = PyList_New(np[i]);
when treating unknown long int * from helpers/src/_nc_cntr.c:1369 as non-NULL
when PyList_New() fails
1370         for (k = 0, j = start; j < end; j++, k++)
when considering range: 1 <= value <= 0x7fffffff
taking True path
1371         {
1372             point = Py_BuildValue("(dd)", xp[j], yp[j]);
when treating unknown double * from helpers/src/_nc_cntr.c:1372 as non-NULL
when treating unknown double * from helpers/src/_nc_cntr.c:1372 as non-NULL
when Py_BuildValue() succeeds
1373             if (PyList_SetItem(contourList, k, point)) goto error;
calling PyList_SetItem with NULL as argument 1 (contourList) at helpers/src/_nc_cntr.c:1373
PyList_SetItem() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type
found 3 similar trace(s) to this
1374         }
1375         if (PyList_SetItem(all_contours, i, contourList)) goto error;
1376     }
1377     return all_contours;
1378 
1379     error:
1380     Py_XDECREF(all_contours);
1381     return NULL;
1382 }

File: helpers/src/_nc_cntr.c
Function: build_cntr_list_p
Error: calling PyList_SetItem with NULL as argument 1 (all_contours) at helpers/src/_nc_cntr.c:1375
1356 static PyObject *
1357 build_cntr_list_p(long *np, double *xp, double *yp, int nparts, long ntotal)
1358 {
1359     PyObject *point, *contourList, *all_contours;
1360     int start = 0, end = 0;
1361     int i, j, k;
1362 
1363     all_contours = PyList_New(nparts);
when PyList_New() fails
1364 
1365     for (i = 0; i < nparts; i++)
when considering range: 1 <= value <= 0x7fffffff
taking True path
1366     {
1367         start = end;
1368         end += np[i];
when treating unknown long int * from helpers/src/_nc_cntr.c:1368 as non-NULL
1369         contourList = PyList_New(np[i]);
when treating unknown long int * from helpers/src/_nc_cntr.c:1369 as non-NULL
when PyList_New() succeeds
1370         for (k = 0, j = start; j < end; j++, k++)
when considering range: -0x80000000 <= value <= 0
taking False path
1371         {
1372             point = Py_BuildValue("(dd)", xp[j], yp[j]);
1373             if (PyList_SetItem(contourList, k, point)) goto error;
1374         }
1375         if (PyList_SetItem(all_contours, i, contourList)) goto error;
calling PyList_SetItem with NULL as argument 1 (all_contours) at helpers/src/_nc_cntr.c:1375
PyList_SetItem() invokes Py_TYPE() on the pointer via the PyList_Check() macro, thus accessing (NULL)->ob_type
found 3 similar trace(s) to this
1376     }
1377     return all_contours;
1378 
1379     error:
1380     Py_XDECREF(all_contours);
1381     return NULL;
1382 }