Fix potential NPE in aquery output.
@@ -90,12 +90,14 @@ class ActionGraphTextOutputFormatterCallback extends AqueryThreadsafeCallback {
}
if (options.useAspects) {
for (AspectValue aspectValue : accessor.getAspectValues(configuredTargetValue)) {
+ if (aspectValue != null) {
for (ActionAnalysisMetadata action : aspectValue.getActions()) {
writeAction(action, printStream);
}
}
}
}
+ }
} catch (CommandLineExpansionException e) {
throw new IOException(e.getMessage());
}
