Add file checks
This commit is contained in:
parent
a8730f979e
commit
a419e76793
1 changed files with 4 additions and 1 deletions
|
@ -23,8 +23,11 @@ public class Metadata {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void read(String metadataFilePath) {
|
public void read(String metadataFilePath) {
|
||||||
|
if (metadataFilePath == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
File file = new File(metadataFilePath);
|
File file = new File(metadataFilePath);
|
||||||
if (!file.exists()) {
|
if (!file.exists() || !file.canRead()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
readCSVFile(metadataFilePath);
|
readCSVFile(metadataFilePath);
|
||||||
|
|
Loading…
Add table
Reference in a new issue