Running SWFs - Create tempfiles fix nullpointer

This commit is contained in:
Jindra Petřík
2024-08-05 11:17:25 +02:00
parent 1ccbd6e972
commit d81abfe4cf
+1 -1
View File
@@ -559,7 +559,7 @@ public class Main {
}
private static File createTempFileInDir(File tempFilesDir, String prefix, String suffix) throws IOException {
if (!tempFilesDir.isDirectory()) {
if (tempFilesDir == null || !tempFilesDir.isDirectory()) {
return File.createTempFile(prefix, suffix);
}
try {