mirror of
https://github.com/YTVanced/VancedMicroG
synced 2024-11-30 23:23:01 +00:00
TemporaryExposureKey: safely initialize with null data
This commit is contained in:
parent
832ee232ea
commit
98d1f54e54
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue