gson null in GazeManager

Forum for development in the Java programming language.

gson null in GazeManager

Postby notfred » 20 Mar 2015, 22:50

I grabbed the java client from github and made it into a successfully building-from-source library that is part of an existing Android studio project I have. I got a crash in onGazeApiResponse at the first use of gson:

Code: Select all
ReplyBase reply = gson.fromJson(jo, ReplyBase.class);


I added a "gson = new Gson();" in the class's constructor, and it began working. It seems impossible that this is simply a bug - is there another explanation? A difference in the way singletons end up getting compiled between Eclipse and Android Studio or something? Am I going to run into problems after adding this gson initialization?
notfred
 
Posts: 1
Joined: 23 Jan 2015, 20:36

Re: gson null in GazeManager

Postby Anders » 23 Mar 2015, 09:57

Thank you for making us aware of this. A VCS merge went wrong when we released last week. It is now resolved.
Anders
 
Posts: 124
Joined: 29 Oct 2013, 16:23


Return to Java



cron