mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-27 00:02:25 +00:00
Fixed: Null Check on Sabnzbd Version Parse
This commit is contained in:
parent
311df71acf
commit
38a6dbbc42
1 changed files with 6 additions and 1 deletions
|
@ -314,6 +314,11 @@ private bool HasVersion(int major, int minor, int patch = 0)
|
|||
|
||||
private Version ParseVersion(string version)
|
||||
{
|
||||
if (version.IsNullOrWhiteSpace())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var parsed = VersionRegex.Match(version);
|
||||
|
||||
int major;
|
||||
|
@ -351,7 +356,7 @@ private ValidationFailure TestConnectionAndVersion()
|
|||
|
||||
if (version == null)
|
||||
{
|
||||
return new ValidationFailure("Version", "Unknown Version: " + version);
|
||||
return new ValidationFailure("Version", "Unknown Version: " + rawVersion);
|
||||
}
|
||||
|
||||
if (rawVersion.Equals("develop", StringComparison.InvariantCultureIgnoreCase))
|
||||
|
|
Loading…
Reference in a new issue