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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user