--- ./gdb/gdbtypes.c_orig	2016-01-19 02:48:43.000000000 -0600
+++ ./gdb//gdbtypes.c	2016-01-19 06:18:32.000000000 -0600
@@ -1630,6 +1630,8 @@
 static int
 is_dynamic_type_internal (struct type *type, int top_level)
 {
+  if (type == NULL)
+     return 0;
   type = check_typedef (type);
 
   /* We only want to recognize references at the outermost level.  */
