Revision 25681 trunk/extensions/extGeoreferencing/src/org/gvsig/georeferencing/ui/launcher/OutFileSelectionPanel.java

View differences:

OutFileSelectionPanel.java
71 71
	 */
72 72
	private JTextField getFileName() {
73 73
		if (fileName == null) {
74
			fileName = new JTextField(FileOpenWizard.getLastPath() + File.separator + RasterLibrary.usesOnlyLayerName() + ".tif");
74
			String path = FileOpenWizard.getLastPath();
75
			if(path == null)
76
				path = System.getProperty("user.home");
77
			fileName = new JTextField(path + File.separator + RasterLibrary.usesOnlyLayerName() + ".tif");
75 78
			fileName.setEditable(true);
76 79
		}
77 80
		return fileName;

Also available in: Unified diff