|
From: <jm_...@us...> - 2004-01-12 10:27:11
|
Update of /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/hydraulique1d/casier
In directory sc8-pr-cvs1:/tmp/cvs-serv7272/dodico/src/org/fudaa/dodico/hydraulique1d/casier
Modified Files:
DCalageImage.java
Log Message:
Sécurisation du "set" sur les points 2D pour éviter une "null pointer exception"
Index: DCalageImage.java
===================================================================
RCS file: /cvsroot/fudaa//fudaa_devel/dodico/src/org/fudaa/dodico/hydraulique1d/casier/DCalageImage.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** DCalageImage.java 2 Dec 2003 19:54:40 -0000 1.3
--- DCalageImage.java 12 Jan 2004 10:27:08 -0000 1.4
***************
*** 77,81 ****
}
public void pt1Pixel(SPoint2D s) {
! if ( (s.x==pt1Pixel_.x)&&(s.y==pt1Pixel_.y) ) return;
pt1Pixel_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt1Pixel");
--- 77,84 ----
}
public void pt1Pixel(SPoint2D s) {
! if ((pt1Pixel_ != null)&&(s != null)) {
! if ( (s.x == pt1Pixel_.x) && (s.y == pt1Pixel_.y))
! return;
! }
pt1Pixel_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt1Pixel");
***************
*** 86,90 ****
}
public void pt1Utilisateur(SPoint2D s) {
! if ( (s.x==pt1Utilisateur_.x)&&(s.y==pt1Utilisateur_.y) ) return;
pt1Utilisateur_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt1Utilisateur");
--- 89,96 ----
}
public void pt1Utilisateur(SPoint2D s) {
! if ((pt1Utilisateur_ != null)&&(s != null)) {
! if ( (s.x == pt1Utilisateur_.x) && (s.y == pt1Utilisateur_.y))
! return;
! }
pt1Utilisateur_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt1Utilisateur");
***************
*** 95,99 ****
}
public void pt2Pixel(SPoint2D s) {
! if ( (s.x==pt2Pixel_.x)&&(s.y==pt2Pixel_.y) ) return;
pt2Pixel_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt2Pixel");
--- 101,108 ----
}
public void pt2Pixel(SPoint2D s) {
! if ((pt2Pixel_ != null)&&(s != null)) {
! if ( (s.x == pt2Pixel_.x) && (s.y == pt2Pixel_.y))
! return;
! }
pt2Pixel_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt2Pixel");
***************
*** 104,108 ****
}
public void pt2Utilisateur(SPoint2D s) {
! if ( (s.x==pt2Utilisateur_.x)&&(s.y==pt2Utilisateur_.y) ) return;
pt2Utilisateur_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt2Utilisateur");
--- 113,120 ----
}
public void pt2Utilisateur(SPoint2D s) {
! if ((pt2Utilisateur_ != null)&&(s != null)) {
! if ( (s.x == pt2Utilisateur_.x) && (s.y == pt2Utilisateur_.y))
! return;
! }
pt2Utilisateur_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt2Utilisateur");
***************
*** 113,117 ****
}
public void pt3Pixel(SPoint2D s) {
! if ( (s.x==pt3Pixel_.x)&&(s.y==pt3Pixel_.y) ) return;
pt3Pixel_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt3Pixel");
--- 125,132 ----
}
public void pt3Pixel(SPoint2D s) {
! if ((pt3Pixel_ != null)&&(s != null)) {
! if ( (s.x == pt3Pixel_.x) && (s.y == pt3Pixel_.y))
! return;
! }
pt3Pixel_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt3Pixel");
***************
*** 122,126 ****
}
public void pt3Utilisateur(SPoint2D s) {
! if ( (s.x==pt3Utilisateur_.x)&&(s.y==pt3Utilisateur_.y) ) return;
pt3Utilisateur_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt3Utilisateur");
--- 137,144 ----
}
public void pt3Utilisateur(SPoint2D s) {
! if ((pt3Utilisateur_ != null)&&(s != null)) {
! if ( (s.x == pt3Utilisateur_.x) && (s.y == pt3Utilisateur_.y))
! return;
! }
pt3Utilisateur_= s;
CDodico.findUsine().fireObjetModifie(toString(), tie(), "pt3Utilisateur");
|