From: ageay Date: Thu, 28 Jun 2012 15:49:34 +0000 (+0000) Subject: Protection. X-Git-Tag: V6_main_FINAL~620 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=813d21be27453b6a266c4f9c868eed0c7620baa9;p=tools%2Fmedcoupling.git Protection. --- diff --git a/src/MEDCoupling/MEDCouplingPointSet.cxx b/src/MEDCoupling/MEDCouplingPointSet.cxx index 3b7692cad..0611c6342 100644 --- a/src/MEDCoupling/MEDCouplingPointSet.cxx +++ b/src/MEDCoupling/MEDCouplingPointSet.cxx @@ -792,6 +792,8 @@ void MEDCouplingPointSet::rotate3D(const double *center, const double *vect, dou */ void MEDCouplingPointSet::Rotate3DAlg(const double *center, const double *vect, double angle, int nbNodes, double *coords) { + if(!center || !vect) + throw INTERP_KERNEL::Exception("MEDCouplingPointSet::Rotate3DAlg : null vector in input !"); double sina=sin(angle); double cosa=cos(angle); double vectorNorm[3];