1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/x509/X509Certificate.cs b/crypto/src/x509/X509Certificate.cs
index 2e627dbab..fd156e487 100644
--- a/crypto/src/x509/X509Certificate.cs
+++ b/crypto/src/x509/X509Certificate.cs
@@ -298,7 +298,7 @@ namespace Org.BouncyCastle.X509
/// </summary>
public virtual bool[] GetKeyUsage()
{
- return keyUsage == null ? null : (bool[]) keyUsage.Clone();
+ return Arrays.Clone(keyUsage);
}
// TODO Replace with something that returns a list of DerObjectIdentifier
|