hugo
hugo copied to clipboard
NullPointerException with hugo
Getting null pointer exceptions with Hugo 1.2.1. Device Nexus6p, Android 7.1.1 (api 25)
Logs here:
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Class.isAnonymousClass()' on a null object reference
at hugo.weaving.internal.Hugo.asTag(Hugo.java:97)
at hugo.weaving.internal.Hugo.asTag(Hugo.java:98)
at hugo.weaving.internal.Hugo.enterMethod(Hugo.java:71)
at hugo.weaving.internal.Hugo.ajc$inlineAccessMethod$hugo_weaving_internal_Hugo$hugo_weaving_internal_Hugo$enterMethod(Hugo.java:1)
at hugo.weaving.internal.Hugo.logAndExecute(Hugo.java:36)
Did you or anyone else find a root cause / solution for this?
What's the cause of this?
Had this problem recently. Seems to have been related to a listener imbrication (clickListener definition in another clickListener definition). Also this started happening after migration from source / target java version compatibility from 1.7 to 1.8.
Changed it to lambda expressions and it fixed it.
@marian-eremia I'm getting this now, but moved to 1.8 a while ago. Could you elaborate on what exactly you changed?