From 813d21be27453b6a266c4f9c868eed0c7620baa9 Mon Sep 17 00:00:00 2001 From: ageay Date: Thu, 28 Jun 2012 15:49:34 +0000 Subject: [PATCH] Protection. --- src/MEDCoupling/MEDCouplingPointSet.cxx | 2 ++ 1 file changed, 2 insertions(+) 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]; -- 2.39.2