Skip to content

Commit c9440bd

Browse files
committed
sdk installer: fix NPE if folder to make executable is missing
1 parent 489d0a3 commit c9440bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)