fix crash when folder is present in ig folder
This commit is contained in:
parent
5364606cb5
commit
776811813e
|
@ -562,7 +562,7 @@ public class IgLoader {
|
||||||
for (File ff : f.listFiles()) {
|
for (File ff : f.listFiles()) {
|
||||||
if (ff.isDirectory() && recursive) {
|
if (ff.isDirectory() && recursive) {
|
||||||
res.putAll(scanDirectory(ff, true));
|
res.putAll(scanDirectory(ff, true));
|
||||||
} else if (!isIgnoreFile(ff)) {
|
} else if (!ff.isDirectory() && !isIgnoreFile(ff)) {
|
||||||
Manager.FhirFormat fmt = ResourceChecker.checkIsResource(getContext(), isDebug(), ff.getAbsolutePath());
|
Manager.FhirFormat fmt = ResourceChecker.checkIsResource(getContext(), isDebug(), ff.getAbsolutePath());
|
||||||
if (fmt != null) {
|
if (fmt != null) {
|
||||||
res.put(Utilities.changeFileExt(ff.getName(), "." + fmt.getExtension()), TextFile.fileToBytes(ff.getAbsolutePath()));
|
res.put(Utilities.changeFileExt(ff.getName(), "." + fmt.getExtension()), TextFile.fileToBytes(ff.getAbsolutePath()));
|
||||||
|
|
Loading…
Reference in New Issue