File: clawsmailmodule.c
Function: get_folder_tree_from_folderitem
Error: returning (PyObject*)NULL without setting an exception
216 static PyObject* get_folder_tree_from_folderitem(FolderItem *item)
217 {
218   PyObject *result;
219   GList *walk;
220 
221   for(walk = folder_get_list(); walk; walk = walk->next) {
222     Folder *folder = walk->data;
when treating unknown struct GList * from clawsmailmodule.c:222 as non-NULL
taking True path
223     if(folder->node) {
224       GNode *root_node;
when treating unknown void * from clawsmailmodule.c:223 as non-NULL
when treating unknown struct GNode * from clawsmailmodule.c:224 as non-NULL
taking True path
225 
226       root_node = g_node_find(folder->node, G_PRE_ORDER, G_TRAVERSE_ALL, item);
227       if(!root_node)
228         continue;
when treating unknown struct GNode * from clawsmailmodule.c:227 as non-NULL
taking False path
229 
230       result = NULL;
231       if(!setup_folderitem_node(root_node, NULL, &result))
232         return NULL;
when considering value == (gboolean)0 from clawsmailmodule.c:232
taking True path
233       else
234         return result;
235     }
236   }
237 
238   PyErr_SetString(PyExc_LookupError, "Folder not found");
239   return NULL;
240 }
241 
returning (PyObject*)NULL without setting an exception