Skip to content

Commit 6990afd

Browse files
committed
NPE absichern
1 parent 5f2d2ca commit 6990afd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/com/inet/gradle/setup/dmg/AbstractOSXApplicationBuilder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ protected void prepareApplication( Application application, boolean isJNLPBuild
9797
String mainJar = application.getMainJar();
9898
if( application.getWorkDir() != null ) {
9999
appBundler.setWorkingDirectory( new File( new File( "$APP_ROOT/Contents/Java" ), application.getWorkDir() ).toString() );
100-
mainJar = new File( new File( application.getWorkDir() ), mainJar ).toString();
100+
if ( mainJar != null ) {
101+
mainJar = new File( new File( application.getWorkDir() ), mainJar ).toString();
102+
}
101103
}
102104

103105
appBundler.setShortVersion( version );

0 commit comments

Comments
 (0)