java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

Stack Overflow | Abo Hani | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    NullException int java.util.List.size() using Retrofit2 when Proguard is enabled

    Stack Overflow | 9 months ago | Abo Hani
    java.lang.NullPointerException: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'int java.util.List.size()' on a null object reference

      at com.abohani.example.utils.BanUtil$2.onResponse()
    2. com.abohani.example
      BanUtil$2.onResponse
      1. com.abohani.example.utils.BanUtil$2.onResponse(BanUtil.java:91)
      1 frame