dtcm: Coverity 88056
authorPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 17:55:47 +0000 (18:55 +0100)
committerPeter Howkins <flibble@users.sf.net>
Fri, 13 Jul 2018 17:55:47 +0000 (18:55 +0100)
cde/programs/dtcm/dtcm/group_editor.c

index 77cb115df24d085aec5d638091f2eda8e1bf6542..82fe3364cf7a8530b49b45834ee90f8710b1d2b8 100644 (file)
@@ -730,6 +730,10 @@ ge_insert_proc(Widget w, XtPointer client_data, XtPointer data) {
                ad = (Access_data *)
                        CmDataListGetData(ge->access_data, c_list[i]);
 
+               if(NULL == ad) {
+                       _DtTurnOffHourGlass(ge->frame);
+                       return;
+               }
 
                /* it may seem a little odd to create this
                   template appointment over and over again, but this