NullReferenceException

This commit is contained in:
2022-08-13 11:19:08 -07:00
parent 3aeab88384
commit 0392de1920
33 changed files with 1278 additions and 1030 deletions

View File

@ -120,9 +120,9 @@ internal sealed class SimpleObjectDetector
uint upsamplingAmount)
{
if (detector == null)
throw new ArgumentNullException(nameof(detector));
throw new NullReferenceException(nameof(detector));
if (image == null)
throw new ArgumentNullException(nameof(image));
throw new NullReferenceException(nameof(image));
detector.ThrowIfDisposed();
image.ThrowIfDisposed();