1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027575: Reading STEP file gives an empty result

Exception is raised during translation BSpline curve having only one unique knot.
Protection for such case was added
Added protection against exception during reading BSpline curve with number of control points equal to 0
Added protection against exception due to using null binder during writing XDE document

Test case for issue #27575
This commit is contained in:
gka
2016-11-17 14:44:59 +03:00
committed by apn
parent 7a1b96cb98
commit 72523826de
5 changed files with 50 additions and 17 deletions

View File

@@ -889,8 +889,9 @@ static Standard_Integer FindEntities (const Handle(Transfer_FinderProcess) &FP,
seqRI.Append (aLocalItem);
}
}
else
else if(!TransientListBinder.IsNull())
{
const Standard_Integer nb = TransientListBinder->NbTransients();
for (Standard_Integer i=1; i<=nb; i++) {
Handle(Standard_Transient) t = TransientListBinder->Transient(i);