- pFunctionPoint* ordFirstPoint = (pFunctionPoint*)realPoints.GetFirst()-> GetData();
- pFunctionPoint* ordLastPoint = (pFunctionPoint*)(lastNodeIncluded->GetPrevious())-> GetData();
+ pFunctionPoint* ordFirstPoint = NULL;
+ pFunctionPoint* ordLastPoint = NULL;
+ if(node!=NULL){
+ ordFirstPoint = (pFunctionPoint*)realPoints.GetFirst()-> GetData();
+ }
+ if(lastNodeIncluded->GetPrevious()!=NULL){
+ ordLastPoint = (pFunctionPoint*)(lastNodeIncluded->GetPrevious())-> GetData();
+ }