diff --git a/BinaryObjectScanner/Scanner.cs b/BinaryObjectScanner/Scanner.cs index 176b69bd..ff2c2d1d 100644 --- a/BinaryObjectScanner/Scanner.cs +++ b/BinaryObjectScanner/Scanner.cs @@ -304,6 +304,11 @@ namespace BinaryObjectScanner // Get the wrapper, if possible var wrapper = WrapperFactory.CreateWrapper(fileType, stream); + if (wrapper == null) + { + if (_includeDebug) Console.WriteLine($"{fileName} not a scannable file type, skipping..."); + return []; + } #region Non-Archive File Types