fix import curse forge modpack without modlist.html
This commit is contained in:
@@ -227,7 +227,7 @@ public final class CompressingUtils {
|
|||||||
public static Optional<String> readTextZipEntryQuietly(File file, String name) {
|
public static Optional<String> readTextZipEntryQuietly(File file, String name) {
|
||||||
try {
|
try {
|
||||||
return Optional.of(readTextZipEntry(file, name));
|
return Optional.of(readTextZipEntry(file, name));
|
||||||
} catch (IOException e) {
|
} catch (IOException | NullPointerException e) {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -242,7 +242,7 @@ public final class CompressingUtils {
|
|||||||
public static Optional<String> readTextZipEntryQuietly(Path file, String name, Charset encoding) {
|
public static Optional<String> readTextZipEntryQuietly(Path file, String name, Charset encoding) {
|
||||||
try {
|
try {
|
||||||
return Optional.of(readTextZipEntry(file, name, encoding));
|
return Optional.of(readTextZipEntry(file, name, encoding));
|
||||||
} catch (IOException e) {
|
} catch (IOException | NullPointerException e) {
|
||||||
return Optional.empty();
|
return Optional.empty();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user