Empty list cannot be called Contains() it seems, appears as

null.
This commit is contained in:
2014-08-28 17:38:41 +01:00
parent 6e563fb135
commit 41fe7bc575

View File

@@ -73,6 +73,9 @@ namespace DiscImageChef.Plugins
{
try
{
if(imagePlugin.ImageInfo.readableSectorTags==null)
return false;
if(!imagePlugin.ImageInfo.readableSectorTags.Contains(SectorTagType.AppleSectorTag))
return false;
@@ -159,6 +162,9 @@ namespace DiscImageChef.Plugins
try
{
if(imagePlugin.ImageInfo.readableSectorTags==null)
return;
if(!imagePlugin.ImageInfo.readableSectorTags.Contains(SectorTagType.AppleSectorTag))
return;