Skip to content

Commit

Permalink
Resolve Issue googlesamples#19
Browse files Browse the repository at this point in the history
`getApkDigestSha256()` now null checks the backing field, and if is null, returns an empty byte array
  • Loading branch information
dphillipsprosper committed Mar 21, 2019
1 parent d7513a5 commit 2ae8649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/java/src/main/java/AttestationStatement.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public String getApkPackageName() {
}

public byte[] getApkDigestSha256() {
return Base64.decodeBase64(apkDigestSha256);
return apkDigestSha256 != null ? Base64.decodeBase64(apkDigestSha256) : new byte[0];
}

public byte[][] getApkCertificateDigestSha256() {
Expand Down

0 comments on commit 2ae8649

Please sign in to comment.