We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b23c69 commit 3cdfaa2Copy full SHA for 3cdfaa2
app/src/processing/app/Platform.java
@@ -336,9 +336,12 @@ static public boolean isLinux() {
336
@Deprecated
337
static public File getContentFile(String name) {
338
if (processingRoot == null) {
339
- var resourcesDir = new File(System.getProperty("compose.application.resources.dir"));
340
- if(resourcesDir.exists()) {
341
- return new File(resourcesDir, name);
+ var resourcesDir = System.getProperty("compose.application.resources.dir");
+ if(resourcesDir != null) {
+ var directory = new File(resourcesDir);
342
+ if(directory.exists()){
343
+ return new File(directory, name);
344
+ }
345
}
346
// Get the path to the .jar file that contains Base.class
347
URL pathURL =
0 commit comments