Throw an ObjectModelNotSupportedException to notify of a problem rather than just returning

This commit is contained in:
Michael Becker 2014-06-09 09:52:21 -04:00
parent 9335ab1f93
commit 13777021d3

View File

@ -35,7 +35,7 @@ namespace UniversalEditor.DataFormats.FileSystem.UXT
protected override void LoadInternal(ref ObjectModel objectModel)
{
FileSystemObjectModel fsom = (objectModel as FileSystemObjectModel);
if (fsom == null) return;
if (fsom == null) throw new ObjectModelNotSupportedException();
Reader br = base.Accessor.Reader;