0

I am making an android app and fetching data from kinvey. It is creating users and logging them in but when i try to fetch data from kinvey then app got crashed. here ismy entity class:

Entity class

Here is the kinvey Collection for my app:

Kinvey collection

and finally here is my code in main class from where i am try to fetch data:

enter image description here

and here is the catlog in order you want to see error

enter image description here

Fahid Nadeem
  • 412
  • 2
  • 7
  • 19

1 Answers1

1

It's because you get a NullPointerException.
From the StackTrace: you are calling result.length in your onSucess() method but the result variable is null. You should verify it is not null before trying to do anything with this object.

Simon Marquis
  • 7,248
  • 1
  • 28
  • 43