2007-07-31 Michael Snyder * jv-lang.c (java_link_class_type): Guard against NULL. Index: jv-lang.c =================================================================== RCS file: /cvs/src/src/gdb/jv-lang.c,v retrieving revision 1.47 diff -p -r1.47 jv-lang.c *** jv-lang.c 13 Jun 2007 17:30:01 -0000 1.47 --- jv-lang.c 2 Aug 2007 21:29:07 -0000 *************** java_link_class_type (struct type *type, *** 351,363 **** struct objfile *objfile = get_dynamics_objfile (); struct type *tsuper; unqualified_name = strrchr (name, '.'); if (unqualified_name == NULL) unqualified_name = name; temp = clas; temp = value_struct_elt (&temp, NULL, "superclass", NULL, "structure"); ! if (name != NULL && strcmp (name, "java.lang.Object") == 0) { tsuper = get_java_object_type (); if (tsuper && TYPE_CODE (tsuper) == TYPE_CODE_PTR) --- 351,364 ---- struct objfile *objfile = get_dynamics_objfile (); struct type *tsuper; + gdb_assert (name != NULL); unqualified_name = strrchr (name, '.'); if (unqualified_name == NULL) unqualified_name = name; temp = clas; temp = value_struct_elt (&temp, NULL, "superclass", NULL, "structure"); ! if (strcmp (name, "java.lang.Object") == 0) { tsuper = get_java_object_type (); if (tsuper && TYPE_CODE (tsuper) == TYPE_CODE_PTR)