Nightonke / GithubWidget

Contributions, stars, followers, trending etc. on Github.
697 stars 70 forks source link

Runtime Error in Util.get2DBitmap #15

Open 97littleleaf11 opened 4 years ago

97littleleaf11 commented 4 years ago

I found 2 issues:

The first one is under Util.getContributionsFromString:

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.nightonke.githubwidget, PID: 12513
    java.lang.NumberFormatException: For input string: "="
        at java.lang.Integer.parseInt(Integer.java:608)
        at java.lang.Integer.valueOf(Integer.java:794)
        at com.nightonke.githubwidget.Util.getContributionsFromString(Util.java:128)
        at com.nightonke.githubwidget.Util.get2DBitmap(Util.java:358)
        at com.nightonke.githubwidget.ContributionsTask.onPostExecute(ContributionsTask.java:197)
        at com.nightonke.githubwidget.ContributionsTask.onPostExecute(ContributionsTask.java:21)

Second one is under Util.getContributionsColumnNumber:

E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.nightonke.githubwidget, PID: 12149
    java.lang.StringIndexOutOfBoundsException: String index out of range: -634
        at java.lang.String.substring(String.java:1975)
        at com.nightonke.githubwidget.Util.getContributionsColumnNumber(Util.java:92)
        at com.nightonke.githubwidget.Util.get2DBitmap(Util.java:359)
        at com.nightonke.githubwidget.ContributionsTask.onPostExecute(ContributionsTask.java:197)
        at com.nightonke.githubwidget.ContributionsTask.onPostExecute(ContributionsTask.java:21)