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

Stack Overflow | jean d'arme | 2 months ago
  1. 0

    Moshi JsonDataException at $[0]

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

    No JsonAdapter for interface kotlin.properties.ReadOnlyProperty

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

    GitHub comment 5#241672549

    GitHub | 3 months ago | thanh-taro
    com.squareup.moshi.JsonDataException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at path $
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Custom converter to subclass with Moshi

    Stack Overflow | 1 year ago | Defuera
    com.squareup.moshi.JsonDataException: Expected a name but was BEGIN_OBJECT at path $.user
  6. 0

    Android: failing to find adapter for a 'GenericArrayTypeImpl' type

    GitHub | 10 months ago | bjdodson
    com.squareup.moshi.JsonDataException: Expected BEGIN_ARRAY but was STRING at path $.Keys.jesse

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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