Revision 704

View differences:

org.gvsig.projection/trunk/org.gvsig.projection.api/src/main/java/org/gvsig/fmap/crs/persistence/ProjectionPersistenceFactory.java
77 77

  
78 78
	public Object createFromState(PersistentState state)
79 79
			throws PersistenceException {
80
		return CRSFactory.getCRS(state.getString(FIELD_FULLCODE));
80
        IProjection proj;
81
        try {
82
            proj = CRSFactory.getCRS(state.getString(FIELD_FULLCODE));
83
        } catch(Exception ex) {
84
            state.getContext().addError(ex);
85
            proj = null;
86
        }
87
		return proj;
81 88
	}
82 89

  
83 90
	public void saveToState(PersistentState state, Object obj)

Also available in: Unified diff