Index: src/libs/zbxdbhigh/db.c =================================================================== --- src/libs/zbxdbhigh/db.c +++ src/libs/zbxdbhigh/db.c @@ -2068,7 +2068,7 @@ h_value = zbx_malloc(h_value, (h_alloc + 1) * sizeof(char *)); - while (NULL != (row = DBfetch(result))) + while (NULL != (row = DBfetch(result)) && SUCCEED != DBis_null(row[0])) { if (h_alloc == h_num) {