-
-
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
Bugfix NPE & Convert to Kotlin SSL Untrusted Cert Dialog #13076
Conversation
app/src/main/java/com/owncloud/android/ui/dialog/SslUntrustedCertDialog.kt
Outdated
Show resolved
Hide resolved
How can I test this dialog? |
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
Signed-off-by: alperozturk <[email protected]>
3aa91b5
to
be55d52
Compare
Signed-off-by: alperozturk <[email protected]>
IDK. What's the difference for certificate between v1 and v2? Can't you create certificate for v2 manually? I tested the dialog by calling it from FileDisplayActivity and manually creating a certificate, which I then passed to the dialog's constructor. |
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/13076.apk |
Right… I was wrong with that one… |
/backport to stable-3.29 |
Previously SSL Untrusted Cert Dialog was java file and a lot of nullable variable used everywhere. I checked our crash reports and a lot of user affected because of NPE. This PR converts java file to Kotlin and safely uses the variables.