-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fix crash caused UserAccountManager dependency not being injected #4111
Fix crash caused UserAccountManager dependency not being injected #4111
Conversation
Fixes #4107 Signed-off-by: Chris Narkiewicz <[email protected]>
32bc73e
to
30af6a9
Compare
@tobiasKaminsky @AndyScherzinger I think this should be merged ASAP. |
@@ -67,7 +68,7 @@ | |||
import androidx.appcompat.widget.SearchView; | |||
import androidx.core.view.MenuItemCompat; | |||
|
|||
public class PreviewTextFragment extends FileFragment implements SearchView.OnQueryTextListener { | |||
public class PreviewTextFragment extends FileFragment implements SearchView.OnQueryTextListener, Injectable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Injectable
caused the user account to be null and - surprise, surprise - NPE.
To test this code path just try opening any txt file. It should not crash.
It looks like emulator died. There is no chance this fix causes a build failure. Restarting... |
Build fails again, despite no errors in log. |
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/9603.apk |
Codacy310Lint
SpotBugs (new)
SpotBugs (master)
|
Codecov Report
@@ Coverage Diff @@
## master #4111 +/- ##
============================================
- Coverage 12.81% 12.77% -0.05%
Complexity 1 1
============================================
Files 332 332
Lines 31068 31068
Branches 4431 4431
============================================
- Hits 3981 3968 -13
- Misses 26413 26430 +17
+ Partials 674 670 -4
|
Latest build worked 👍 |
Yeah, worked also here ... |
Thank you @ezaquarii for finding the cause and also directly provide a PR ❤️ |
Signed-off-by: Chris Narkiewicz [email protected]
Resolves #4107