Skip to content

Commit a007c68

Browse files
committed
sdk installer: fix NPE if folder to make executable is missing
1 parent 8c4af6b commit a007c68

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/nbi/stub/ext/components/products/helloworld/src/org/mycompany/ConfigurationLogic.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ public void install(Progress progress) throws InstallationException {
213213
}
214214
private static void setExecutableContents(File parent, String path) {
215215
File binDir = new File(parent, path);
216-
for (File file : binDir.listFiles()) {
216+
File[] fileList = binDir.listFiles();
217+
for (File file : fileList) {
217218
try {
218219
file.setExecutable(true, false);
219220
} catch (Exception ex) {

0 commit comments

Comments
 (0)