aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/conversations_table.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-09-06 10:32:29 +0200
committerMichael Mann <mmann78@netscape.net>2014-09-07 01:39:22 +0000
commit0d6fb098d0f3d7b2a40e61e0c1afd25cfcee7554 (patch)
tree2df041e89b80e54ed9be35b0852831bc7364e800 /ui/gtk/conversations_table.c
parent24d129572017bbc1fc7548bcc07fd3408d65e19a (diff)
GTK (conversations table): Fix Dereference of null pointer found by Clang analyzer
Change-Id: Iebe0c581259b80d905f0ef3e26c1caae07f715d1 Reviewed-on: https://code.wireshark.org/review/4012 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/gtk/conversations_table.c')
-rw-r--r--ui/gtk/conversations_table.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gtk/conversations_table.c b/ui/gtk/conversations_table.c
index 7e30c3c425..853ef1a201 100644
--- a/ui/gtk/conversations_table.c
+++ b/ui/gtk/conversations_table.c
@@ -1654,6 +1654,9 @@ draw_ct_table_data(conversations_table *ct)
double duration_s;
conv_item_t *conv_item;
+ if (!ct->hash.conv_array) {
+ continue;
+ }
if (iter_valid) {
gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, CONV_INDEX_COLUMN, &idx, -1);
} else {