diff --git a/ArcFormats/ArcXP3.cs b/ArcFormats/ArcXP3.cs index 1220ce77..f636470e 100644 --- a/ArcFormats/ArcXP3.cs +++ b/ArcFormats/ArcXP3.cs @@ -290,11 +290,9 @@ NextEntry: public static ICrypt GetScheme (string scheme) { - ICrypt algorithm = NoCryptAlgorithm; - if (!string.IsNullOrEmpty (scheme)) - { - KnownSchemes.TryGetValue (scheme, out algorithm); - } + ICrypt algorithm; + if (string.IsNullOrEmpty (scheme) || !KnownSchemes.TryGetValue (scheme, out algorithm)) + algorithm = NoCryptAlgorithm; return algorithm; }