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

Fix bug: NullPointerException when no ApplicationVersion exists for installed APK #224

Closed
nya-elimu opened this issue Jul 4, 2020 · 0 comments
Assignees

Comments

@nya-elimu
Copy link
Member

nya-elimu commented Jul 4, 2020

To prevent crash during development (before any ApplicationVersion) has been uploaded to the webapp.

2020-07-04 11:04:31.473 28002-28002/ai.elimu.appstore.debug E/AndroidRuntime: FATAL EXCEPTION: main
    Process: ai.elimu.appstore.debug, PID: 28002
    java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Integer ai.elimu.appstore.room.entity.ApplicationVersion.getVersionCode()' on a null object reference
        at ai.elimu.appstore.ui.applications.ApplicationListAdapter.onBindViewHolder(ApplicationListAdapter.java:92)
        at ai.elimu.appstore.ui.applications.ApplicationListAdapter.onBindViewHolder(ApplicationListAdapter.java:34)
@nya-elimu nya-elimu self-assigned this Jul 4, 2020
nya-elimu pushed a commit that referenced this issue Jul 4, 2020
nya-elimu added a commit that referenced this issue Jul 4, 2020
…n-when-no-ApplicationVersion-exists-for-installed-APK

#224 Fix bug: NullPointerException when no ApplicationVersion exists …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant