Proposed fix for NPE that was preventing the helpful error log from getting
surfaced.
TESTED=built blaze locally and ensured that blaze test :CrashTest no longer NPEs (and prints out the helpful log).
RELNOTES: None
@@ -497,6 +497,7 @@ public abstract class AndroidLocalTestBase implements RuleConfiguredTargetFactor
+ ".java' and package name doesn't include 'java' or 'javatests'. "
+ "You might want to rename the rule or add a 'test_class' "
+ "attribute.)");
+ testClass = "";
}
}
return testClass;
