com.squareup.moshi.JsonDataException: java.lang.NullPointerException at $[0]

Stack Overflow | jean d'arme | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Moshi JsonDataException at $[0]

    Stack Overflow | 4 months ago | jean d'arme
    com.squareup.moshi.JsonDataException: java.lang.NullPointerException at $[0]
  2. 0

    No JsonAdapter for interface kotlin.properties.ReadOnlyProperty

    GitHub | 9 months ago | fab1an
    com.squareup.moshi.JsonDataException: java.lang.IllegalArgumentException: <NEWLINE INSERTED> No JsonAdapter for interface kotlin.properties.ReadOnlyProperty annotated [] at $.currentScene

    Root Cause Analysis

    1. com.squareup.moshi.JsonDataException

      java.lang.NullPointerException at $[0]

      at com.squareup.moshi.AdapterMethodsFactory$1.toJson()
    2. com.squareup.moshi
      JsonAdapter.toJson
      1. com.squareup.moshi.AdapterMethodsFactory$1.toJson(AdapterMethodsFactory.java:68)
      2. com.squareup.moshi.CollectionJsonAdapter.toJson(CollectionJsonAdapter.java:84)
      3. com.squareup.moshi.CollectionJsonAdapter$2.toJson(CollectionJsonAdapter.java:52)
      4. com.squareup.moshi.JsonAdapter$1.toJson(JsonAdapter.java:75)
      5. com.squareup.moshi.JsonAdapter.toJson(JsonAdapter.java:44)
      6. com.squareup.moshi.JsonAdapter.toJson(JsonAdapter.java:50)
      6 frames
    3. package.network
      DatabaseSyncHelper$$Lambda$5.call
      1. package.network.DatabaseSyncHelper.sendContacts(DatabaseSyncHelper.java:203)
      2. package.network.DatabaseSyncHelper.lambda$getCallLogs$2(DatabaseSyncHelper.java:167)
      3. package.network.DatabaseSyncHelper.access$lambda$2(DatabaseSyncHelper.java:0)
      4. package.network.DatabaseSyncHelper$$Lambda$5.call(Unknown Source)
      4 frames
    4. rxjava
      OperatorObserveOn$ObserveOnSubscriber.call
      1. rx.internal.util.ActionSubscriber.onNext(ActionSubscriber.java:39)
      2. rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139)
      3. rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:227)
      3 frames
    5. rxandroid
      LooperScheduler$ScheduledAction.run
      1. rx.android.schedulers.LooperScheduler$ScheduledAction.run(LooperScheduler.java:107)
      1 frame
    6. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:733)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:146)
      4. android.app.ActivityThread.main(ActivityThread.java:5602)
      4 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    8. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
      2 frames
    9. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame