Running SWFs - Create tempfiles fix nullpointer

This commit is contained in:
Jindra Petřík
2024-08-03 11:52:14 +02:00
parent 1ccbd6e972
commit d81abfe4cf

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 {