Skip to content

Commit

Permalink
fix issue #16: project without dependencies fails
Browse files Browse the repository at this point in the history
  • Loading branch information
siordache committed Dec 15, 2018
1 parent afd3d4c commit 3301070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/groovy/org/beryx/jlink/util/Util.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Util {
}

static String getFallbackModuleName(File f) {
def modName = new JarFile(f).getManifest()?.mainAttributes.getValue('Automatic-Module-Name')
def modName = new JarFile(f).getManifest()?.mainAttributes?.getValue('Automatic-Module-Name')
if(modName) return modName
def s = f.name
def tokens = s.split('-[0-9]')
Expand Down

0 comments on commit 3301070

Please sign in to comment.