--- ./gdb/gdbtypes.c_orig	2017-05-22 05:05:25 -0500
+++ ./gdb/gdbtypes.c	2017-05-22 05:07:30 -0500
@@ -1803,6 +1803,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.  */
