fixed a crash when the importer was missing

This commit is contained in:
Ellpeck 2019-12-01 14:53:03 +01:00
parent f08d0c2393
commit 33f5c14583
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
<package>
<metadata>
<id>Contentless</id>
<version>2.0.2</version>
<version>2.0.3</version>
<authors>Ellpeck</authors>
<description>A tool for MonoGame that automatically handles adding assets to the Content Pipeline project</description>
<tags>monogame mono xna content pipeline mgcb builder tool library</tags>

View file

@ -116,7 +116,7 @@ namespace Contentless {
// normal importers
if (importer == null)
importer = GetImporterFor(relative, importers);
if (processor == null)
if (importer != null && processor == null)
processor = Array.Find(processors, p => p == importer.Importer.DefaultProcessor);
// no importer found :(