소스 검색

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 {