]> OCCT Git - occt-copy.git/commit
0030712: Application Framework - Protect binary TriangulationDriver against empty... CR0-720-Hybrid
authormsv <msv@opencascade.com>
Wed, 15 May 2019 09:10:36 +0000 (12:10 +0300)
committermsv <msv@opencascade.com>
Wed, 15 May 2019 09:10:36 +0000 (12:10 +0300)
commitf717761044f2ba9007bb366d4254b7de3d69a98f
treed5bae12e5535f0e284ff31bae296068a37902d40
parentbf90129c2f5c901eb042177c44f1f20a66b83ef3
0030712: Application Framework - Protect binary TriangulationDriver against empty triangulation in the file

The matter is that when the binary OCAF file contained a triangulation with 0 nodes and 0 triangles the method Paste would cause construction error of Poly_Triangulation.
This patch protects this method against exception.
src/BinMDataXtd/BinMDataXtd_TriangulationDriver.cxx