From 33f5c1458323c54fff6379245fe0835c83f0f1ab Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 1 Dec 2019 14:53:03 +0100 Subject: [PATCH] fixed a crash when the importer was missing --- Contentless/Contentless.nuspec | 2 +- Contentless/Program.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Contentless/Contentless.nuspec b/Contentless/Contentless.nuspec index ac734a7..af4df98 100644 --- a/Contentless/Contentless.nuspec +++ b/Contentless/Contentless.nuspec @@ -2,7 +2,7 @@ Contentless - 2.0.2 + 2.0.3 Ellpeck A tool for MonoGame that automatically handles adding assets to the Content Pipeline project monogame mono xna content pipeline mgcb builder tool library diff --git a/Contentless/Program.cs b/Contentless/Program.cs index dba3f9f..df0f970 100644 --- a/Contentless/Program.cs +++ b/Contentless/Program.cs @@ -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 :(