Skip to content

Commit

Permalink
Release 2.3.0 - Fixed NPE in new function
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed May 6, 2012
1 parent 2f0522d commit fd9457a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jOOQ/src/main/java/org/jooq/impl/Factory.java
Original file line number Diff line number Diff line change
Expand Up @@ -3867,7 +3867,7 @@ public static <T extends Number> Field<T> trunc(T number, Field<Integer> decimal
*/
@Support({ ASE, CUBRID, DB2, DERBY, H2, HSQLDB, INGRES, MYSQL, ORACLE, POSTGRES, SQLSERVER, SYBASE })
public static <T extends Number> Field<T> trunc(Field<T> number, Field<Integer> decimals) {
return new Trunc<T>(number, decimals);
return new Trunc<T>(nullSafe(number), nullSafe(decimals));
}

/**
Expand Down

0 comments on commit fd9457a

Please sign in to comment.