Skip to content

Commit

Permalink
* fix FreelineInitializer NPE(#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
lomanyong committed Nov 16, 2016
1 parent 10580a7 commit a1ec189
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,9 @@ class FreelineInitializer {
projectDescription.databinding_modules = []
project.rootProject.allprojects.each { pro ->
if (pro.plugins.hasPlugin("com.android.application") || pro.plugins.hasPlugin("com.android.library")) {
if (pro.android.hasProperty("dataBinding") && pro.android.dataBinding.enabled) {
if (pro.android.hasProperty("dataBinding")
&& pro.android.dataBinding.enabled
&& projectDescription.project_source_sets[pro.name] != null) {
def data = [:]
String manifestPath = projectDescription.project_source_sets[pro.name].main_manifest_path
data.name = pro.name
Expand Down

0 comments on commit a1ec189

Please sign in to comment.