Fix_NPE_on_set_when_objectClass_is_null.patch
src/org/gvsig/fmap/dal/feature/impl/DefaultFeature.java (copia de trabajo) | ||
---|---|---|
105 | 105 | |
106 | 106 |
} |
107 | 107 |
|
108 |
if (attribute.getFeatureAttributeGetter() != null){ |
|
108 |
if (attribute.getFeatureAttributeGetter() != null) {
|
|
109 | 109 |
value = attribute.getFeatureAttributeGetter().setter(value); |
110 | 110 |
} |
111 | 111 |
|
112 |
if (attribute.getObjectClass() != null) { |
|
112 | 113 |
if (attribute.getObjectClass().isInstance(value)) { |
113 | 114 |
this.data.set(i, value); |
114 | 115 |
return; |
... | ... | |
127 | 128 |
+ value.toString() + "'.", e); |
128 | 129 |
} |
129 | 130 |
} |
131 |
} |
|
130 | 132 |
|
131 | 133 |
this.data.set(i, value); |
132 | 134 |
} |