1 parent 69290fe commit c633012Copy full SHA for c633012
1 file changed
project/core/Config/preprocessor/ElementProcessors/ImportProcessor.cs
@@ -28,6 +28,14 @@ public override IEnumerable< XNode > Process(XNode node)
28
}
29
Type type;
30
type = assembly != null ? assembly.GetType( type_ref ) : Type.GetType( type_ref );
31
+
32
+ if (type == null)
33
+ {
34
+ throw ImportException.CreateException(
35
+ "Imported type '{0}' could not be found in '{1}'",
36
+ type_ref, assembly_loc);
37
+ }
38
39
var processor = Activator.CreateInstance( type, _Env ) as IElementProcessor;
40
if ( processor == null )
41
{
0 commit comments