java.lang.UnsupportedOperationException: JsonNull

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

java.lang.UnsupportedOperationException: JsonNull
at com.google.gson.JsonElement.getAsString(JsonElement.java:191)
at com.money.manager.ex.investment.YqlSecurityPriceUpdaterRetrofit.getSecurityPriceFor(YqlSecurityPriceUpdaterRetrofit.java:212)
at com.money.manager.ex.investment.YqlSecurityPriceUpdaterRetrofit.getPricesFromJson(YqlSecurityPriceUpdaterRetrofit.java:168)
at com.money.manager.ex.investment.YqlSecurityPriceUpdaterRetrofit.onContentDownloaded(YqlSecurityPriceUpdaterRetrofit.java:126)
at com.money.manager.ex.investment.YqlSecurityPriceUpdaterRetrofit$1.onResponse(YqlSecurityPriceUpdaterRetrofit.java:91)
at retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall$1$1.run(ExecutorCallAdapterFactory.java:68)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6145)
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:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

Users with the same issue

12 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
11 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
13 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.