avoid nullpointerexception in EditKeyResult

This commit is contained in:
Vincent Breitmoser 2014-07-31 19:27:15 +02:00
parent acb5a70e44
commit d48e980946

View File

@ -168,13 +168,13 @@ public abstract class OperationResults {
public static class EditKeyResult extends OperationResultParcel {
private transient UncachedKeyRing mRing;
public final long mRingMasterKeyId;
public final Long mRingMasterKeyId;
public EditKeyResult(int result, OperationLog log,
UncachedKeyRing ring) {
super(result, log);
mRing = ring;
mRingMasterKeyId = ring.getMasterKeyId();
mRingMasterKeyId = ring != null ? ring.getMasterKeyId() : null;
}
public UncachedKeyRing getRing() {