Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException with hugo #148

Open
vashisthg opened this issue Dec 2, 2016 · 4 comments
Open

NullPointerException with hugo #148

vashisthg opened this issue Dec 2, 2016 · 4 comments

Comments

@vashisthg
Copy link

vashisthg commented Dec 2, 2016

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)
@ened
Copy link

ened commented May 13, 2017

Did you or anyone else find a root cause / solution for this?

@DanielGod
Copy link

What's the cause of this?

@marian-eremia
Copy link

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.

@ebabel
Copy link

ebabel commented Nov 10, 2017

@marian-eremia I'm getting this now, but moved to 1.8 a while ago. Could you elaborate on what exactly you changed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants