diff --git a/lib/colmgr.cpp b/lib/colmgr.cpp index 5bcc7e95..9784c97b 100644 --- a/lib/colmgr.cpp +++ b/lib/colmgr.cpp @@ -36,7 +36,11 @@ static Library *find_library(const Gtk::TreeModel::Row &row) static void list_path(Library *lib) { - Gtk::TreeModel::Row row = *(c_list->append()); + Gtk::TreeModel::Row row; + + if (!lib) + return; + row = *(c_list->append()); row[c_cols.c_id] = lib->id; row[c_cols.c_enabled] = lib->enabled;