java.lang.NullPointerException: Attempt to invoke virtual method 'POGOProtos.Networking.Responses.CatchPokemonResponseOuterClass$CatchPokemonResponse$CatchStatus POGOProtos.Networking.Responses.CatchPokemonResponseOuterClass$CatchPokemonResponse.getStatus()' on a null object reference

GitHub | TheLushpen | 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

    NullPointer for Catch Pokemon

    GitHub | 9 months ago | TheLushpen
    java.lang.NullPointerException: Attempt to invoke virtual method 'POGOProtos.Networking.Responses.CatchPokemonResponseOuterClass$CatchPokemonResponse$CatchStatus POGOProtos.Networking.Responses.CatchPokemonResponseOuterClass$CatchPokemonResponse.getStatus()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke virtual method 'POGOProtos.Networking.Responses.CatchPokemonResponseOuterClass$CatchPokemonResponse$CatchStatus POGOProtos.Networking.Responses.CatchPokemonResponseOuterClass$CatchPokemonResponse.getStatus()' on a null object reference

      at com.pokegoapi.api.map.pokemon.CatchResult.getStatus()
    2. com.pokegoapi.api
      CatchablePokemon.catchPokemon
      1. com.pokegoapi.api.map.pokemon.CatchResult.getStatus(CatchResult.java:54)
      2. com.pokegoapi.api.map.pokemon.CatchablePokemon.catchPokemon(CatchablePokemon.java:712)
      3. com.pokegoapi.api.map.pokemon.CatchablePokemon.catchPokemon(CatchablePokemon.java:668)
      4. com.pokegoapi.api.map.pokemon.CatchablePokemon.catchPokemon(CatchablePokemon.java:631)
      5. com.pokegoapi.api.map.pokemon.CatchablePokemon.catchPokemon(CatchablePokemon.java:617)
      6. com.pokegoapi.api.map.pokemon.CatchablePokemon.catchPokemon(CatchablePokemon.java:604)
      6 frames