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
Would it be possible to have a more descriptive exception on null objects or any exception detailing one of the objects being injected?
Currently i have an Activity with a large number of @icicles, and it's hard to find out which one is wrong once users report this error through Google Play.
java.lang.NullPointerException
at com.Activity$$Icicle.saveInstanceState(Activity$$Icicle.java:27)
at com.Activity$$Icicle.saveInstanceState(Activity$$Icicle.java:6)
at icepick.Action$1.invoke(Action.java:6)
at icepick.ObjectInjector.inject(ObjectInjector.java:16)
at icepick.Icepick.saveInstanceState(Icepick.java:17)
at
The text was updated successfully, but these errors were encountered:
In a sense, yes. It would be nice if we can state what @icicles can be nullable. But I still think it's a good idea to be as descriptive as possible when throwing exceptions in a library which injects code.
Butterknife is a good example for this, if a View cannot be found, it throws an error stating the resource ID and field name. It would be nice if Icepick would let me know what @icicle it has troubles with.
Would it be possible to have a more descriptive exception on null objects or any exception detailing one of the objects being injected?
Currently i have an Activity with a large number of @icicles, and it's hard to find out which one is wrong once users report this error through Google Play.
The text was updated successfully, but these errors were encountered: