mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-12-27 21:25:49 +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) {
|
||||
this.keyData = keyData;
|
||||
this.keyData = (keyData == null ? new byte[0] : keyData);
|
||||
this.rollingStartIntervalNumber = rollingStartIntervalNumber;
|
||||
this.transmissionRiskLevel = transmissionRiskLevel;
|
||||
this.rollingPeriod = rollingPeriod;
|
||||
|
Loading…
Reference in New Issue
Block a user