fixes_NPE_when_coerce_a_null_date_value.patch
src/main/java/org/gvsig/tools/dataTypes/impl/coercion/AbstractCoerceToDate.java (copia de trabajo) | ||
---|---|---|
41 | 41 | |
42 | 42 |
public Object coerce(Object value) throws CoercionException { |
43 | 43 |
if (!(value instanceof Date)) { |
44 |
if (value == null) { |
|
45 |
return null; |
|
46 |
} |
|
44 | 47 |
DateFormat dateFormatter = createFormatter(); |
45 | 48 |
String valueStr = value.toString(); |
46 | 49 |
try { |