Skip to content

Commit

Permalink
Don't crash when there are no cached versions
Browse files Browse the repository at this point in the history
Oops, Fixed return
  • Loading branch information
iLexiconn committed Jun 5, 2015
1 parent 6df91ca commit 3ce3a30
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class BONUtils {
public static List<String> buildValidMappings() {
File[] versionFolders = BONFiles.MINECRAFTFORGE_FORGE_FOLDER.listFiles();
List<File> acceptedVersions = Lists.newArrayList();
if(versionFolders == null) return new ArrayList<>();
for(File file : versionFolders) {
String name = file.getName();
if(!name.startsWith("1.6") && versionMatcher.reset(name).matches()) {
Expand Down

0 comments on commit 3ce3a30

Please sign in to comment.