forked from github/dataease
fix(数据源): 删除驱动报错
This commit is contained in:
parent
a298dd9ee9
commit
6914d1e9f1
@ -109,7 +109,7 @@ public class DriverService {
|
||||
if(deDriver == null){
|
||||
throw new Exception(Translator.get("I18N_DRIVER_NOT_FOUND"));
|
||||
}
|
||||
if(deDriverDetails.getIsTransName()){
|
||||
if(deDriverDetails.getIsTransName() == null || !deDriverDetails.getIsTransName()){
|
||||
DeFileUtils.deleteFile(DRIVER_PATH + deDriverDetails.getDeDriverId() + "/" + deDriverDetails.getFileName());
|
||||
}else {
|
||||
DeFileUtils.deleteFile(DRIVER_PATH + deDriverDetails.getDeDriverId() + "/" + deDriverDetails.getTransName());
|
||||
|
Loading…
Reference in New Issue
Block a user