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

This commit is contained in:
David A. Velasco 2012-09-14 11:33:25 +02:00
parent afe0c37158
commit eda7243130

View file

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