Revision 10661 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/preferencespage/DriverCSVPage.java

View differences:

DriverCSVPage.java
45 45
import javax.swing.JPanel;
46 46
import javax.swing.JTextField;
47 47

  
48
import com.hardcode.driverManager.DriverLoadException;
48 49
import com.hardcode.driverManager.DriverManager;
49 50
import com.hardcode.gdbms.driver.csvstring.CSVStringDriver;
50 51
import com.iver.andami.PluginServices;
......
83 84
		String separator;
84 85
		separator = txtSeparator.getText();
85 86
		DriverManager dm=LayerFactory.getDM();
86
		CSVStringDriver cvsDriver=(CSVStringDriver)dm.getDriver("csv string");
87
		CSVStringDriver cvsDriver=null;
88
		try {
89
			cvsDriver = (CSVStringDriver)dm.getDriver("csv string");
90
		} catch (DriverLoadException e) {
91
			throw new StoreException();
92
		}
87 93
		cvsDriver.setSeparator(separator);
88 94
		PluginServices ps = PluginServices.getPluginServices(this);
89 95
		XMLEntity xml = ps.getPersistentXML();

Also available in: Unified diff