mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 21:47:42 -05:00
Fix crash when reading empty aw file, fix -SNAPSHOT versions plugin marker not being published
This commit is contained in:
@@ -47,7 +47,13 @@ public class AccessWidener {
|
||||
private Set<String> classes = new LinkedHashSet<>();
|
||||
|
||||
public void read(BufferedReader reader) throws IOException {
|
||||
String[] header = reader.readLine().split("\\s+");
|
||||
String headerStr = reader.readLine();
|
||||
|
||||
if (headerStr == null) {
|
||||
throw new RuntimeException("Cannot read empty or invalid access widener");
|
||||
}
|
||||
|
||||
String[] header = headerStr.split("\\s+");
|
||||
|
||||
if (header.length != 3 || !header[0].equals("accessWidener")) {
|
||||
throw new UnsupportedOperationException("Invalid access access widener header");
|
||||
|
||||
Reference in New Issue
Block a user