Fixed java.lang.ClassCastException entered in the previous update
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / dialog / SslValidatorDialog.java
index 87e33f7..90fad53 100644 (file)
@@ -69,8 +69,7 @@ public class SslValidatorDialog extends Dialog {
      *                      by setting the certificate as reliable.
      */
     public static SslValidatorDialog newInstance(Context context, RemoteOperationResult result, OnSslValidatorListener listener) {
-        Exception e = SslAnalyzer.getRecoverableException(result);
-        if (e != null) {
+        if (SslAnalyzer.isRecoverable(result)) {
             SslValidatorDialog dialog = new SslValidatorDialog(context, listener);
             return dialog;
         } else {