itachi1706 / HypixelStatistics

An android application thats built with the public Hypixel API (ABANDONED)
1 stars 0 forks source link

App Crash Report #2 #31

Closed itachi1706 closed 9 years ago

itachi1706 commented 9 years ago

Crash by searching "Coolterp"

App Details App Version: 1.6.0 App Name: com.itachi1706.hypixelstatistics

Device Information Model: HTC One_M8 Manufacturer: HTC OS Build: htc/htc_asia_wwe/htc_m8:5.0.1/LRX22C/457188.2:user/release-keys Android Version: 5.0.1 Android Code: 457188.2 SDK Level: 21

Stacktrace:

java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.gson.JsonElement.getAsBoolean()' on a null object reference
at com.itachi1706.hypixelstatistics.util.Warlords.DetailedWeaponStatistics.getCurrentEquippedWeaponSpecification(DetailedWeaponStatistics.java:61)
at com.itachi1706.hypixelstatistics.AsyncAPI.Players.GetPlayerByNameExpanded.parseWarlords(GetPlayerByNameExpanded.java:1500)
at com.itachi1706.hypixelstatistics.AsyncAPI.Players.GetPlayerByNameExpanded.parseStats(GetPlayerByNameExpanded.java:513)
at com.itachi1706.hypixelstatistics.AsyncAPI.Players.GetPlayerByNameExpanded.onPostExecute(GetPlayerByNameExpanded.java:218)
at com.itachi1706.hypixelstatistics.AsyncAPI.Players.GetPlayerByNameExpanded.onPostExecute(GetPlayerByNameExpanded.java:58)
at android.os.AsyncTask.finish(AsyncTask.java:632)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:155)
at android.app.ActivityThread.main(ActivityThread.java:5696)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:823)
itachi1706 commented 9 years ago

Fix planned by checking if there is a crafted value in the first place lol. Whoops