Avoid aspect failure when processor_classpath is not available.
Fixes
@@ -649,7 +649,7 @@ def collect_java_info(target, ctx, semantics, ide_info, ide_info_file, output_gr
if hasattr(ctx.rule.attr, "_android_lint_plugins"):
plugin_processor_jar_files += [jar for p in getattr(ctx.rule.attr, "_android_lint_plugins", []) for jar in p[JavaInfo].transitive_runtime_jars.to_list()]
- if hasattr(java, "annotation_processing") and java.annotation_processing:
+ if hasattr(java, "annotation_processing") and java.annotation_processing and hasattr(java.annotation_processing, "processor_classpath"):
plugin_processor_jar_files += java.annotation_processing.processor_classpath.to_list()
resolve_files += plugin_processor_jar_files
plugin_processor_jars = [annotation_processing_jars(jar, None) for jar in depset(plugin_processor_jar_files).to_list()]
