gvSIG bugs #2116
NPE on feature.getDate() of null value
Status: | Closed | % Done: | 0% | |
---|---|---|---|---|
Priority: | Normal | Spent time: | - | |
Assignee: | ||||
Category: | Application | |||
Target version: | 2.1.0-2217-devel | |||
Severity: | Add-on version: | |||
gvSIG version: | 2.0.0 | Add-on build: | ||
gvSIG build: | 2066 | Add-on resolve version: | ||
Operative System: | Add-on resolve build: | |||
Keywords: | Proyecto: | |||
Has patch: | Yes | Hito: | ||
Add-on name: | Unknown |
Description
When I've tried to execute a feature.getDate(i)
of a null
-value, I got this exception:
java.lang.NullPointerException at org.gvsig.tools.dataTypes.impl.coercion.AbstractCoerceToDate.coerce(AbstractCoerceToDate.java:45) at org.gvsig.tools.dataTypes.impl.DefaultDataType.coerce(DefaultDataType.java:39) at org.gvsig.tools.dataTypes.impl.DefaultDataTypesManager.coerce(DefaultDataTypesManager.java:188) at org.gvsig.fmap.dal.feature.impl.DefaultFeature.get(DefaultFeature.java:142) at org.gvsig.fmap.dal.feature.impl.DefaultFeature.getDate(DefaultFeature.java:361) at org.gvsig.fmap.dal.feature.impl.DefaultFeature.getDate(DefaultFeature.java:357)
This method should return a null
for a null
value.
This patch solves the problem.
History
#1
Updated by Joaquín del Cerro Murciano almost 11 years ago
- Assignee set to Joaquín del Cerro Murciano
- Target version set to 2.1.0-2223-rc1
#2
Updated by Joaquín del Cerro Murciano almost 11 years ago
- Status changed from New to Fixed
fixed in revision gvsig-tools:r962
#3
Updated by Joaquín del Cerro Murciano over 10 years ago
- Target version changed from 2.1.0-2223-rc1 to 2.1.0-2217-devel
#4
Updated by Álvaro Anguix over 10 years ago
- Status changed from Fixed to Closed