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

Stack Overflow | Abo Hani | 7 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

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

    Stack Overflow | 7 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