Revision 139 org.gvsig.toolbox/trunk/org.gvsig.toolbox/org.gvsig.toolbox.core/src/main/java/es/unex/sextante/core/GeoAlgorithm.java
GeoAlgorithm.java | ||
---|---|---|
1132 | 1132 |
IVectorLayer layer; |
1133 | 1133 |
final IOutputChannel channel = getOutputChannel(sName); |
1134 | 1134 |
layer = m_OutputFactory.getNewVectorLayer(getLayerName(sName, sDescription), iShapeType, types, sFields, channel, m_CRS); |
1135 |
addOutputVectorLayer(sName, sDescription, iShapeType, channel, layer, out.getInputLayerToOverwrite()); |
|
1135 |
if(layer!=null){ |
|
1136 |
addOutputVectorLayer(sName, sDescription, iShapeType, channel, layer, out.getInputLayerToOverwrite()); |
|
1137 |
} |
|
1136 | 1138 |
return layer; |
1137 | 1139 |
} |
1138 | 1140 |
catch (final Exception e) { |
Also available in: Unified diff