Revision 45887 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/legend/impl/AbstractVectorialLegend.java
AbstractVectorialLegend.java | ||
---|---|---|
33 | 33 |
import java.util.Iterator; |
34 | 34 |
import java.util.Map; |
35 | 35 |
import java.util.Map.Entry; |
36 |
import org.apache.commons.lang3.StringUtils; |
|
36 | 37 |
|
37 | 38 |
import org.cresques.cts.ICoordTrans; |
38 | 39 |
import org.cresques.cts.IProjection; |
... | ... | |
490 | 491 |
//Adds the attributes |
491 | 492 |
String[] fieldNames = getRequiredFeatureAttributeNames(featureStore); |
492 | 493 |
for (int i=0 ; i<fieldNames.length ;i++){ |
493 |
featureQuery.addAttributeName(fieldNames[i]); |
|
494 |
String fieldName = fieldNames[i]; |
|
495 |
if( StringUtils.isNotBlank(fieldName) ) { |
|
496 |
featureQuery.addAttributeName(fieldName); |
|
497 |
} |
|
494 | 498 |
} |
495 | 499 |
|
496 | 500 |
if (!containsAll) { |
Also available in: Unified diff