From 9ae34bfceba7af757ec4ca44026eed0af02df5cc Mon Sep 17 00:00:00 2001 From: inisider Date: Tue, 12 May 2015 19:34:07 +0300 Subject: [PATCH] Fix bug #2558 and add more comments --- libr/bin/pdb/tpi.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/libr/bin/pdb/tpi.c b/libr/bin/pdb/tpi.c index f02bf8cabd..41ec43ab4c 100644 --- a/libr/bin/pdb/tpi.c +++ b/libr/bin/pdb/tpi.c @@ -1416,7 +1416,15 @@ static void get_nesttype_print_type(void *type, char **name) print_base_type(base_type, &tmp_name); } else { ti = &t->type_data; - ti->get_print_type(ti, &tmp_name); + if (ti->get_print_type != NULL) { + ti->get_print_type(ti, &tmp_name); + } else { + // TODO: need to investigate why this branch can be... + // this is possible because there is no support for + // parsing METHODLIST... + // need to investigate for this theme + printf("warning: strange for nesttype\n"); + } } name_len = strlen("nesttype ");