Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nnjun committed Jan 13, 2022
1 parent f8a5b27 commit 2bafd80
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ public class ObfPlugin implements Plugin<Project> {
Task task = mProject.tasks.getByName(name)
if (!tasks.contains(task)) {
tasks.add(task)
mTaskMapping.put(task.name, mappingFile.absolutePath)
if (mappingFile != null) {
mTaskMapping.put(task.name, mappingFile.absolutePath)
}
println("add Task $name")
}
} catch(UnknownTaskException e1) {
Expand Down

0 comments on commit 2bafd80

Please sign in to comment.