3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-10-03 04:10:06 +02:00

Update Upstream

55e2d3d Catch InvalidPathException in safeFile handler (2167)

Closes #1872
Dieser Commit ist enthalten in:
Alexander Brandes 2022-08-10 09:47:53 +02:00
Ursprung 129f4f37a3
Commit 5c2679f95d
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 158F5701A6AAD00C

Datei anzeigen

@ -85,6 +85,7 @@ import java.io.FileInputStream;
import java.io.IOException; import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.nio.file.InvalidPathException;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.util.HashMap; import java.util.HashMap;
@ -369,7 +370,7 @@ public final class WorldEdit {
} }
return filePath.toFile(); return filePath.toFile();
} catch (IOException e) { } catch (IOException | InvalidPathException e) {
throw new FilenameResolutionException(filename, Caption.of("worldedit.error.file-resolution.resolve-failed")); throw new FilenameResolutionException(filename, Caption.of("worldedit.error.file-resolution.resolve-failed"));
} }
} }