aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-06-30 00:07:19 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-06-30 00:07:19 +0000
commit6eaeeb553ad4319869928b00f6e6546b03c22d0f (patch)
tree09b976a62d06149572b2fd2e4913cbfb32e3024f /gcc/java/parse.c
parent671e85f60bb25f516d6688e60e84182934a2d689 (diff)
downloadgcc-6eaeeb553ad4319869928b00f6e6546b03c22d0f.zip
gcc-6eaeeb553ad4319869928b00f6e6546b03c22d0f.tar.gz
gcc-6eaeeb553ad4319869928b00f6e6546b03c22d0f.tar.bz2
parse.y (resolve_field_access): Handle case where `type_found' is NULL.
* parse.y (resolve_field_access): Handle case where `type_found' is NULL. From-SVN: r34795
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r--gcc/java/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/parse.c b/gcc/java/parse.c
index e17372a..b45c566 100644
--- a/gcc/java/parse.c
+++ b/gcc/java/parse.c
@@ -11417,7 +11417,7 @@ resolve_field_access (qual_wfl, field_decl, field_type)
/* Resolve the LENGTH field of an array here */
if (DECL_P (decl) && DECL_NAME (decl) == length_identifier_node
- && TYPE_ARRAY_P (type_found)
+ && type_found && TYPE_ARRAY_P (type_found)
&& ! flag_emit_class_files && ! flag_emit_xref)
{
tree length = build_java_array_length_access (where_found);