[nullsafe][android] stop the analysis if there is no source file to analyze

Reviewed By: mbouaziz

Differential Revision: D13509512

fbshipit-source-id: 565a27eef
master
Jeremy Dubreil 6 years ago committed by Facebook Github Bot
parent 2a139a2220
commit 846d6fa23d

@ -134,13 +134,11 @@ let main load_sources_and_classes =
let classpath, sources, classes =
match load_sources_and_classes with
| `FromVerboseOut verbose_out_file ->
let classpath, sources, classes = JClasspath.load_from_verbose_output verbose_out_file in
if String.Map.is_empty sources then
L.(die InternalError) "Failed to load any Java source code"
else (classpath, sources, classes)
JClasspath.load_from_verbose_output verbose_out_file
| `FromArguments path ->
JClasspath.load_from_arguments path
in
if String.Map.is_empty sources then L.(die InternalError) "Failed to load any Java source code" ;
do_all_files classpath sources classes

Loading…
Cancel
Save