Revision 651 org.gvsig.geoprocess/trunk/org.gvsig.geoprocess/org.gvsig.geoprocess.lib/org.gvsig.geoprocess.lib.sextante/src/main/java/org/gvsig/geoprocess/lib/sextante/AbstractSextanteGeoProcess.java
AbstractSextanteGeoProcess.java | ||
---|---|---|
162 | 162 |
IVectorLayer output = |
163 | 163 |
getNewVectorLayer(sextanteLayerLabel, sextanteLayerName, |
164 | 164 |
shapeType, types, attrNames); |
165 |
return ((FlyrVectIVectorLayer) output).getFeatureStore(); |
|
165 |
if (output != null) { |
|
166 |
return ((FlyrVectIVectorLayer) output).getFeatureStore(); |
|
167 |
} |
|
166 | 168 |
} catch (UnsupportedOutputChannelException e) { |
167 | 169 |
Sextante.addErrorToLog(e); |
168 | 170 |
} catch (GeoAlgorithmExecutionException e) { |
... | ... | |
248 | 250 |
IVectorLayer output = |
249 | 251 |
getNewVectorLayer(sextanteLayerLabel, sextanteLayerName, |
250 | 252 |
shapeType, types, attrNames); |
251 |
return ((FlyrVectIVectorLayer) output).getFeatureStore(); |
|
253 |
if (output != null) { |
|
254 |
return ((FlyrVectIVectorLayer) output).getFeatureStore(); |
|
255 |
} |
|
252 | 256 |
} catch (UnsupportedOutputChannelException e) { |
253 | 257 |
Sextante.addErrorToLog(e); |
254 | 258 |
} catch (GeoAlgorithmExecutionException e) { |
Also available in: Unified diff