Merge remote-tracking branch 'origin/master'

This commit is contained in:
zeruth
2019-06-27 17:14:49 -04:00
351 changed files with 9231 additions and 6230 deletions

View File

@@ -268,7 +268,15 @@ public class RuneLiteAPI
{
try
{
String jsonData = new String(downloadUrl(new URL(GITHUB_API)));
byte[] commits = downloadUrl(new URL(GITHUB_API));
if (commits == null)
{
return null;
}
String jsonData = new String(commits);
for (String s : jsonData.split("\n"))
{
if (s.startsWith("\"sha\":"))