aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/AudioBook/AudioBookResolver.cs
diff options
context:
space:
mode:
authorStepan <ste.martinek+git@gmail.com>2020-11-01 17:10:48 +0100
committerStepan <ste.martinek+git@gmail.com>2020-11-01 17:10:48 +0100
commitf39775dc3a813609454655c31dd5c6a1413cc890 (patch)
tree29a7415e8be89341e8b7c9a0a77e521f6ba44432 /Emby.Naming/AudioBook/AudioBookResolver.cs
parente7a37bedfca159ab6a305833395aead07ccd872f (diff)
Written test to finish coverage for AudioBookListResolver & AudioBookResolver and corrected some logical erros / unhandled exception
Diffstat (limited to 'Emby.Naming/AudioBook/AudioBookResolver.cs')
-rw-r--r--Emby.Naming/AudioBook/AudioBookResolver.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Naming/AudioBook/AudioBookResolver.cs b/Emby.Naming/AudioBook/AudioBookResolver.cs
index c9e8c76cbc..542d6fee51 100644
--- a/Emby.Naming/AudioBook/AudioBookResolver.cs
+++ b/Emby.Naming/AudioBook/AudioBookResolver.cs
@@ -21,7 +21,8 @@ namespace Emby.Naming.AudioBook
{
if (path.Length == 0)
{
- throw new ArgumentException("String can't be empty.", nameof(path));
+ // Return null to indicate this path will not be used, instead of stopping whole process with exception
+ return null;
}
var extension = Path.GetExtension(path);