diff options
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 33e9b37..451ca49 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -8719,7 +8719,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); |