Update of /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/constraint
In directory sc8-pr-cvs1:/tmp/cvs-serv29295/com/mockobjects/constraint
Modified Files:
IsEqual.java
Log Message:
fixed null pointer bug in IsEquals
Index: IsEqual.java
===================================================================
RCS file: /cvsroot/mockobjects/mockobjects-java/src/core/com/mockobjects/constraint/IsEqual.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- IsEqual.java 18 May 2003 20:59:40 -0000 1.3
+++ IsEqual.java 19 Nov 2003 22:14:49 -0000 1.4
@@ -27,6 +27,9 @@
if(arg instanceof Object[]) {
arg = Arrays.asList((Object[])arg);
}
+ if(arg == null){
+ return arg==_object;
+ }
return arg.equals(_object);
}
|