[Mathlib-commitlog] SF.net SVN: mathlib:[546] JMathLib/trunk/src/jmathlibtests/Compare.java
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2008-12-09 20:39:14
|
Revision: 546
http://mathlib.svn.sourceforge.net/mathlib/?rev=546&view=rev
Author: st_mueller
Date: 2008-12-09 20:39:09 +0000 (Tue, 09 Dec 2008)
Log Message:
-----------
catch null-pointer exceptions
Modified Paths:
--------------
JMathLib/trunk/src/jmathlibtests/Compare.java
Modified: JMathLib/trunk/src/jmathlibtests/Compare.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/Compare.java 2008-12-07 19:12:37 UTC (rev 545)
+++ JMathLib/trunk/src/jmathlibtests/Compare.java 2008-12-09 20:39:09 UTC (rev 546)
@@ -15,6 +15,8 @@
public static boolean ArrayEquals(double[][] a, double[][] b, double tol)
{
// number of rows must be greater 0 and equal
+ if (a == null) return false;
+ if (b == null) return false;
if (a.length < 1) return false;
if (b.length < 1) return false;
if (a.length != b.length) return false;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|