0030588: Coding - avoid calling operator->() on NULL Handle
[occt.git] / src / OpenGl / OpenGl_PrimitiveArray.cxx
index 30f7cd2..cec64bb 100644 (file)
@@ -1104,7 +1104,7 @@ void OpenGl_PrimitiveArray::InitBuffers (const Handle(OpenGl_Context)&        th
                                          const Handle(Graphic3d_BoundBuffer)& theBounds)
 {
   // Release old graphic resources
-  Release (theContext.operator->());
+  Release (theContext.get());
 
   myIndices = theIndices;
   myAttribs = theAttribs;