Revision 41348 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/layers/vectorial/IntersectsTimeEvaluator.java

View differences:

IntersectsTimeEvaluator.java
48 48

  
49 49
    public Object evaluate(EvaluatorData data) throws EvaluatorException {
50 50
        Feature feature = ((Feature) data.getContextValue("feature"));
51
        return new Boolean(time.intersects((Time)feature.get(timeAttributeName)));       
51
        Time featureTime = (Time)feature.get(timeAttributeName);
52
        if( featureTime==null ) {
53
            return Boolean.FALSE;
54
        }
55
        return new Boolean(time.intersects(featureTime));       
52 56
    }
53 57

  
54 58
    public String getName() {       

Also available in: Unified diff