throwing System.ArgumentNullException due to Regex.Match throwing that exception when the input and or pattern parameters are null .
The exception stops the discovery of all devices on the network. Ideally the discovery process should be a bit more robust, and maybe filter out non-ONVIF devices. The latter might be out of scope.
The Synology NASes on our network responds to the discovery probe with something along the lines of:
Which means that the
Scopes
inProbeMatch
defaults tonull
. Leading tothrowing
System.ArgumentNullException
due toRegex.Match
throwing that exception when theinput
and orpattern
parameters are null .The exception stops the discovery of all devices on the network. Ideally the discovery process should be a bit more robust, and maybe filter out non-ONVIF devices. The latter might be out of scope.