فهرست منبع

Fixed crash when the device is turned while the warning dialog about server certificates is shown

David A. Velasco 12 سال پیش
والد
کامیت
eda7243130
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/com/owncloud/android/ui/dialog/SslValidatorDialog.java

+ 1 - 1
src/com/owncloud/android/ui/dialog/SslValidatorDialog.java

@@ -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 {