0000672: Loading Example Drawing extraction crashes at Baseclass.cpp line 115

This commit is contained in:
wmayer
2012-04-16 15:57:10 +02:00
parent ab48b280ec
commit e558efac9d
8 changed files with 70 additions and 2 deletions

View File

@@ -100,6 +100,9 @@ int TopoShapeShellPy::PyInit(PyObject* args, PyObject* /*kwd*/)
shape = sewShell.ApplySewing(shell);
}
if (shape.IsNull())
Standard_Failure::Raise("Shape is null");
if (shape.ShapeType() != TopAbs_SHELL)
Standard_Failure::Raise("Shape is not a shell");
}