Skip to content

Commit

Permalink
protect rule
Browse files Browse the repository at this point in the history
  • Loading branch information
felixzhou committed Jan 3, 2019
1 parent b52d8d5 commit ac52f81
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,12 @@ public void run() throws Exception {
ApkTask unzipTask = TaskFactory.factory(TaskFactory.TASK_TYPE_UNZIP, jobConfig, new HashMap<String, String>());
preTasks.add(unzipTask);
for (String format : jobConfig.getOutputFormatList()) {
jobResults.add(JobResultFactory.factory(format, jobConfig));
JobResult result = JobResultFactory.factory(format, jobConfig);
if (result != null) {
jobResults.add(result);
} else {
Log.w(TAG, "Unknown output format name '%s' !", format);
}
}
execute();
} else {
Expand Down

0 comments on commit ac52f81

Please sign in to comment.