Revision 33029 branches/v2_0_0_prep/libraries/libFMap_dalfile/src/org/gvsig/fmap/dal/store/dbf/DBFStoreProvider.java

View differences:

DBFStoreProvider.java
60 60
import org.gvsig.tools.dynobject.DynObject;
61 61
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
62 62
import org.gvsig.tools.exception.BaseException;
63
import org.slf4j.Logger;
64
import org.slf4j.LoggerFactory;
63 65

  
64 66
public class DBFStoreProvider extends AbstractFeatureStoreProvider implements
65 67
		ResourceConsumer {
66 68

  
69
	private static final Logger LOG = LoggerFactory.getLogger(DBFStoreProvider.class);
70

  
67 71
	public static String NAME = "DBF";
68 72
	public static String DESCRIPTION = "DBF file";
69 73
	//	private DBFResource dbf = null;
......
113 117

  
114 118
	protected void init(DBFStoreParameters params,
115 119
			DataStoreProviderServices storeServices) throws InitializeException {
120
		if( params == null ) {
121
			throw new InitializeException( new NullPointerException("params is null") );
122
		}
116 123
		File theFile = getDBFParameters().getDBFFile();
124
		if( theFile == null ) {
125
			throw new InitializeException( new NullPointerException("dbf file is null") );
126
		}
117 127
		initResource(params, storeServices);
118 128

  
119 129
		Charset charset = params.getEncoding();

Also available in: Unified diff