TWCable / gradle-plugin-scr

Makes it easier to work for with the Felix SCR annotations for Gradle
Apache License 2.0
4 stars 2 forks source link

NPE when sources don't contain any components #4

Closed ghost closed 8 years ago

ghost commented 8 years ago

NPE at if (!files.isEmpty()) { but I think that it should be if (files && !files.isEmpty()) {

        } as FilenameFilter) as List<File>

        if (!files.isEmpty()) {
            def relFiles = files.collect { file -> 'OSGI-INF/' + file.name }
            project.logger.info "Created ${relFiles}"
jdigger commented 8 years ago

Fixed in v1.1.0