]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOM/GEOM_PythonDump.cxx
Salome HOME
PAL12781: EDF: different result between Working Plane and LCS. Implement and use...
[modules/geom.git] / src / GEOM / GEOM_PythonDump.cxx
index d11673b2e21457017b18e4981c9f5bc323135a30..a3ff987bde2d2234fce5c3b84cf837c5f6a0dba1 100644 (file)
@@ -104,9 +104,13 @@ namespace GEOM
 
   TPythonDump& TPythonDump::operator<< (const Handle(GEOM_Object)& theObject)
   {
-    TCollection_AsciiString anEntry;
-    TDF_Tool::Entry(theObject->GetEntry(), anEntry);
-    myStream << anEntry.ToCString();
+    if (theObject.IsNull()) {
+      myStream << "None";
+    } else {
+      TCollection_AsciiString anEntry;
+      TDF_Tool::Entry(theObject->GetEntry(), anEntry);
+      myStream << anEntry.ToCString();
+    }
     return *this;
   }