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

PdfReaderViewModel.update java.lang.NullPointerException #210

Open
Dima-Android opened this issue Jan 14, 2025 · 0 comments
Open

PdfReaderViewModel.update java.lang.NullPointerException #210

Dima-Android opened this issue Jan 14, 2025 · 0 comments

Comments

@Dima-Android
Copy link
Collaborator

The only way I was able to reproduce this crash is by quickly tapping various settings buttons in PdfSettingsScreen.
Each time a setting is changed it immediately affects the PdfScreen and makes the pspfkit’s pdfView to reinitialize (it has to reinitialize to apply new settings).
The fix for now is to make changing a setting to not trigger pdfView reinitialization immediately and instead wait until the point the PdfSettingsScreen is closed. This way user gets to select all the settings user wants to change, navigates back to PdfScreen and only then they get applied.

I will keep monitoring whether this crash disappears or whether there are other triggers.

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

No branches or pull requests

1 participant