Skip to content

Commit

Permalink
Merge pull request #15 from iLexiconn/master
Browse files Browse the repository at this point in the history
Don't crash when there are no cached versions
  • Loading branch information
Parker8283 committed Jun 5, 2015
2 parents 6df91ca + 3ce3a30 commit 88abaf2
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 88abaf2

Please sign in to comment.