mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 17:46:37 +03:00
Fixed crash when the device is turned while the warning dialog about server certificates is shown
This commit is contained in:
parent
afe0c37158
commit
eda7243130
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ public class SslValidatorDialog extends Dialog {
|
|||
* by setting the certificate as reliable.
|
||||
*/
|
||||
public static SslValidatorDialog newInstance(Context context, RemoteOperationResult result, OnSslValidatorListener listener) {
|
||||
if (result.isSslRecoverableException()) {
|
||||
if (result != null && result.isSslRecoverableException()) {
|
||||
SslValidatorDialog dialog = new SslValidatorDialog(context, listener);
|
||||
return dialog;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue