diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-07 13:36:50 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-07 13:36:50 +0200 |
| commit | 4d4a9116ea5c68b27f0b7c43db9682ab57738ae7 (patch) | |
| tree | c0761af45b3ec3c6e109ebc6b27a57e4fa4175c3 /src/GraphicObjects/TemplatedContainer.cs | |
| parent | 3ba387d4424eac597c7d512664214dc2437007d0 (diff) | |
divers
Diffstat (limited to 'src/GraphicObjects/TemplatedContainer.cs')
| -rw-r--r-- | src/GraphicObjects/TemplatedContainer.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/GraphicObjects/TemplatedContainer.cs b/src/GraphicObjects/TemplatedContainer.cs index a845722a..18977cf9 100644 --- a/src/GraphicObjects/TemplatedContainer.cs +++ b/src/GraphicObjects/TemplatedContainer.cs @@ -92,6 +92,9 @@ namespace Crow t = expT; } } + if (t == null) + throw new Exception (xr.Name + " type not found"); + GraphicObject go = (GraphicObject)Activator.CreateInstance (t); (go as IXmlSerializable).ReadXml (xr); |