Aded empty selected directory fix
This commit is contained in:
parent
acf2fb086b
commit
588ce7e15c
|
@ -332,7 +332,11 @@ public class CorpusTab {
|
||||||
* has to produce a non-empty list results list
|
* has to produce a non-empty list results list
|
||||||
*/
|
*/
|
||||||
private void chooseCorpusLocation() {
|
private void chooseCorpusLocation() {
|
||||||
|
File oldSelectedDirectory = selectedDirectory != null ? new File(selectedDirectory.getAbsolutePath()) : null;
|
||||||
selectedDirectory = directoryChooser();
|
selectedDirectory = directoryChooser();
|
||||||
|
if(selectedDirectory == null) {
|
||||||
|
selectedDirectory = oldSelectedDirectory;
|
||||||
|
}
|
||||||
|
|
||||||
if (selectedDirectory != null && ValidationUtil.isReadableDirectory(selectedDirectory)) {
|
if (selectedDirectory != null && ValidationUtil.isReadableDirectory(selectedDirectory)) {
|
||||||
logger.info("selected corpus dir: ", selectedDirectory.getAbsolutePath());
|
logger.info("selected corpus dir: ", selectedDirectory.getAbsolutePath());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user