Revision: 4331
          http://vexi.svn.sourceforge.net/vexi/?rev=4331&view=rev
Author:   mkpg2
Date:     2012-01-18 23:54:35 +0000 (Wed, 18 Jan 2012)
Log Message:
-----------
Change. Number.cast(null) returns null.

Modified Paths:
--------------
    trunk/org.vexi-library.js/src/main/java/org/ibex/js/JSNumber.java

Modified: trunk/org.vexi-library.js/src/main/java/org/ibex/js/JSNumber.java
===================================================================
--- trunk/org.vexi-library.js/src/main/java/org/ibex/js/JSNumber.java   
2012-01-18 04:11:35 UTC (rev 4330)
+++ trunk/org.vexi-library.js/src/main/java/org/ibex/js/JSNumber.java   
2012-01-18 23:54:35 UTC (rev 4331)
@@ -53,6 +53,7 @@
     }
     
     static private JSNumber cast(JS format, JS o) throws JSExn{
+        if(o==null) return null;
         int formatConst = typeString2const(format);
         JSNumber n;
         if(!(o instanceof JSNumber)){

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to