Skip to content

Commit 3cdfaa2

Browse files
committed
Bugfix
1 parent 7b23c69 commit 3cdfaa2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/src/processing/app/Platform.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,12 @@ static public boolean isLinux() {
336336
@Deprecated
337337
static public File getContentFile(String name) {
338338
if (processingRoot == null) {
339-
var resourcesDir = new File(System.getProperty("compose.application.resources.dir"));
340-
if(resourcesDir.exists()) {
341-
return new File(resourcesDir, name);
339+
var resourcesDir = System.getProperty("compose.application.resources.dir");
340+
if(resourcesDir != null) {
341+
var directory = new File(resourcesDir);
342+
if(directory.exists()){
343+
return new File(directory, name);
344+
}
342345
}
343346
// Get the path to the .jar file that contains Base.class
344347
URL pathURL =

0 commit comments

Comments
 (0)