sdk installer: fix NPE if folder to make executable is missing
This commit is contained in:
parent
8c4af6b039
commit
a007c68c87
@ -213,7 +213,8 @@ public class ConfigurationLogic extends ProductConfigurationLogic {
|
|||||||
}
|
}
|
||||||
private static void setExecutableContents(File parent, String path) {
|
private static void setExecutableContents(File parent, String path) {
|
||||||
File binDir = new File(parent, path);
|
File binDir = new File(parent, path);
|
||||||
for (File file : binDir.listFiles()) {
|
File[] fileList = binDir.listFiles();
|
||||||
|
for (File file : fileList) {
|
||||||
try {
|
try {
|
||||||
file.setExecutable(true, false);
|
file.setExecutable(true, false);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user