sdk installer: fix NPE if folder to make executable is missing

experimental
Kirill Vainer 10 years ago
parent 8c4af6b039
commit a007c68c87
  1. 3
      sdk/nbi/stub/ext/components/products/helloworld/src/org/mycompany/ConfigurationLogic.java

@ -213,7 +213,8 @@ public class ConfigurationLogic extends ProductConfigurationLogic {
}
private static void setExecutableContents(File parent, String path) {
File binDir = new File(parent, path);
for (File file : binDir.listFiles()) {
File[] fileList = binDir.listFiles();
for (File file : fileList) {
try {
file.setExecutable(true, false);
} catch (Exception ex) {

Loading…
Cancel
Save