-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Null Pointer Exception When Mocking Method With No Parameters in Android Ui Test #794
Comments
Seems like the
@raphw Do you have an idea why an null array is passed here? |
This does not look possible from the code. Byte Buddy never assigns As this is run in an instrumentation test, it is neither Byte Buddy which is creating the byte code, it is a fork of dexmaker which is causing the problem: https://github.com/blueapron/dexmaker This problem does not occur with |
Do you guys have an idea for the timeframe when mockito-android will be released? |
Soon rather than later. We are still tinkering out the publication mechanism. E.g. separate artifact, separate repo? |
I get a crash when I mock a method in an interface that doesn't take any parameters. This only happens in Android Espresso tests. I've replicated the same conditions in a unit test with robolectric and that problem doesn't exist.
I created a repo that has a ui test with the crash
https://github.com/simon-the-canadian/mockito-android-ui-test-null-pointer
The text was updated successfully, but these errors were encountered: