Revision 44604 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/impl/expressionevaluator/DefaultFeatureAttributeEmulatorExpression.java

View differences:

DefaultFeatureAttributeEmulatorExpression.java
98 98
        this.requiredFields = theUsedFields.toArray(new String[theUsedFields.size()]);
99 99
    }
100 100

  
101
    @Override
101 102
    public boolean isEnableExceptions() {
102 103
        return enableExceptions;
103 104
    }
104 105

  
106
    @Override
105 107
    public void setEnableExceptions(boolean enableExceptions) {
106 108
        this.enableExceptions = enableExceptions;
107 109
    }
......
143 145
            if( this.enableExceptions ) {
144 146
                throw ex;
145 147
            }
146
            this.getLogger().warn("Problems evaluating expression '"+this.expression.getPhrase()+"' with feature '"+feature.getReference().toString()+"'.", ex);
148
            String phrase = "unknon";
149
            String featureref ="unknon";
150
            try {
151
                phrase = this.expression.getPhrase();
152
            } catch(Throwable th) {
153
                
154
            }
155
            try {
156
                featureref = feature.getReference().toString();
157
            } catch(Throwable th) {
158
                
159
            }
160
            this.getLogger().warn("Problems evaluating expression '"+phrase+"' with feature '"+featureref+"'.", ex);
147 161
            return null;
148 162
        }
149 163
    }

Also available in: Unified diff