]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug fix: SWIG'd getCoords() detects properly null pointer _coords.
authorbruneton <bruneton>
Thu, 21 Mar 2013 15:21:32 +0000 (15:21 +0000)
committerbruneton <bruneton>
Thu, 21 Mar 2013 15:21:32 +0000 (15:21 +0000)
src/MEDCoupling_Swig/MEDCouplingCommon.i

index 1e4a99e7a253d29365e0ca52ee31e0c670ef43b8..c5e060582235b24a7033b7a4dc63a1a1e6e47350 100644 (file)
@@ -2064,7 +2064,8 @@ namespace ParaMEDMEM
            PyObject *getCoords() throw(INTERP_KERNEL::Exception)
            {
              DataArrayDouble *ret1=self->getCoords();
-             ret1->incrRef();
+             if (ret1)
+                ret1->incrRef();
              return SWIG_NewPointerObj((void*)ret1,SWIGTYPE_p_ParaMEDMEM__DataArrayDouble,SWIG_POINTER_OWN | 0);
            }