db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/broker FieldConversionTest_3.java
Date Thu, 03 Mar 2005 17:18:17 GMT
arminw      2005/03/03 09:18:17

  Modified:    src/test/org/apache/ojb/broker Tag: OJB_1_0_RELEASE
                        FieldConversionTest_3.java
  Log:
  fix NPE
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.4.2.2   +3 -1      db-ojb/src/test/org/apache/ojb/broker/FieldConversionTest_3.java
  
  Index: FieldConversionTest_3.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/broker/FieldConversionTest_3.java,v
  retrieving revision 1.4.2.1
  retrieving revision 1.4.2.2
  diff -u -r1.4.2.1 -r1.4.2.2
  --- FieldConversionTest_3.java	2 Mar 2005 20:13:49 -0000	1.4.2.1
  +++ FieldConversionTest_3.java	3 Mar 2005 17:18:17 -0000	1.4.2.2
  @@ -136,6 +136,7 @@
   
           public Object javaToSql(Object source) throws ConversionException
           {
  +            if(source == null) return null;
               Object ret;
               if (source instanceof Long)
               {
  @@ -159,6 +160,7 @@
   
           public Object sqlToJava(Object source) throws ConversionException
           {
  +            if(source == null) return null;
               Object ret;
               if (source instanceof BigDecimal)
               {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message