1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0023261: Checking handle value against NULL

Checking handles using the IsNull() method.
Minor correction of compilation error (missing parentheses in function call)
This commit is contained in:
Pawel
2012-07-13 17:31:19 +04:00
parent f272f76c5a
commit 9e4c2fbb29
2 changed files with 2 additions and 2 deletions

View File

@@ -486,7 +486,7 @@ void NIS_Surface::SetDisplayMode (const NIS_Surface::DisplayMode theMode)
isUpdate = Standard_True;
}
}
if (isUpdate && GetDrawer()) {
if (isUpdate && !GetDrawer().IsNull()) {
const Handle(NIS_SurfaceDrawer) aDrawer =
static_cast<NIS_SurfaceDrawer *>(DefaultDrawer(0L));
aDrawer->Assign (GetDrawer());