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

Crash when FloatingActionButton.setOnSpeedDialMenuCloseListener() get's null as parameter #26

Closed
tihomirleka opened this issue Mar 13, 2018 · 3 comments
Labels

Comments

@tihomirleka
Copy link

Hi,

I just updated from Java to Kotlin (latest) version of the library and my app crashes when I try to pass null to FloatingActionButton.setOnSpeedDialMenuCloseListener() method.

I get the following error

Fatal Exception: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter listener
       at uk.co.markormesher.android_fab.FloatingActionButton.setOnSpeedDialMenuCloseListener(FloatingActionButton.kt)

I don't know Kotlin so I'm not sure what's the problem.

@markormesher
Copy link
Owner

Hey @tihomirleka - thanks for flagging this! I can see the problem; I'll release a fix shortly.

@markormesher
Copy link
Owner

Fixed in v2.2.1 - let me know if you have any other issues! 👍

@tihomirleka
Copy link
Author

Just tested it. No crash. Thanks

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

No branches or pull requests

2 participants