mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-28 13:45:50 +01:00
TemporaryExposureKey: safely initialize with null data
This commit is contained in:
parent
832ee232ea
commit
98d1f54e54
@ -27,7 +27,7 @@ public class TemporaryExposureKey extends AutoSafeParcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TemporaryExposureKey(byte[] keyData, int rollingStartIntervalNumber, @RiskLevel int transmissionRiskLevel, int rollingPeriod) {
|
TemporaryExposureKey(byte[] keyData, int rollingStartIntervalNumber, @RiskLevel int transmissionRiskLevel, int rollingPeriod) {
|
||||||
this.keyData = keyData;
|
this.keyData = (keyData == null ? new byte[0] : keyData);
|
||||||
this.rollingStartIntervalNumber = rollingStartIntervalNumber;
|
this.rollingStartIntervalNumber = rollingStartIntervalNumber;
|
||||||
this.transmissionRiskLevel = transmissionRiskLevel;
|
this.transmissionRiskLevel = transmissionRiskLevel;
|
||||||
this.rollingPeriod = rollingPeriod;
|
this.rollingPeriod = rollingPeriod;
|
||||||
|
Loading…
Reference in New Issue
Block a user