You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are seeing this in our NewRelic crash reporting:
com.orha...kBuilder | HawkBuilder.java line 86 in com.orhanobut.hawk.HawkBuilder.getParser()
com.orha...awk.Hawk | Hawk.java line 27 in com.orhanobut.hawk.Hawk.build()
com.orha...kBuilder | HawkBuilder.java line 109 in com.orhanobut.hawk.HawkBuilder.build()
and also a subsequent crash report
com.orha...onParser | GsonParser.java line 26 in com.orhanobut.hawk.GsonParser.toJson()
com.orha...onverter | HawkConverter.java line 33 in com.orhanobut.hawk.HawkConverter.toString()
com.orha...wkFacade | DefaultHawkFacade.java line 33 in com.orhanobut.hawk.DefaultHawkFacade.put()
com.orha...awk.Hawk | Hawk.java line 39 in com.orhanobut.hawk.Hawk.put()
This seems to be happening when the app restarts and Hawk.init is called again. Should we only call Hawk.init once per app launch? And if the app relaunches from background or from another app, it shouldn't need to call Hawk.init again?
The text was updated successfully, but these errors were encountered:
Hi, yes, you should call Hawk.init just once per app launch. Preferably in your Application class.
Calling it twice is unnecessary. Share the stacktrace to help better understand the cause.
We are seeing this in our NewRelic crash reporting:
com.orha...kBuilder | HawkBuilder.java line 86 in com.orhanobut.hawk.HawkBuilder.getParser()
com.orha...awk.Hawk | Hawk.java line 27 in com.orhanobut.hawk.Hawk.build()
com.orha...kBuilder | HawkBuilder.java line 109 in com.orhanobut.hawk.HawkBuilder.build()
and also a subsequent crash report
com.orha...onParser | GsonParser.java line 26 in com.orhanobut.hawk.GsonParser.toJson()
com.orha...onverter | HawkConverter.java line 33 in com.orhanobut.hawk.HawkConverter.toString()
com.orha...wkFacade | DefaultHawkFacade.java line 33 in com.orhanobut.hawk.DefaultHawkFacade.put()
com.orha...awk.Hawk | Hawk.java line 39 in com.orhanobut.hawk.Hawk.put()
This seems to be happening when the app restarts and Hawk.init is called again. Should we only call Hawk.init once per app launch? And if the app relaunches from background or from another app, it shouldn't need to call Hawk.init again?
The text was updated successfully, but these errors were encountered: