Skip to content

Commit 2dbe005

Browse files
committed
Fix use the correct reference.
it was used file, wich was a null pointer, use sketchFile instead.
1 parent 0ae9e3a commit 2dbe005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/Editor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2212,7 +2212,7 @@ protected boolean handleOpenInternal(File sketchFile) {
22122212
// copy the sketch inside
22132213
File properPdeFile = new File(properFolder, sketchFile.getName());
22142214
try {
2215-
Base.copyFile(file, properPdeFile);
2215+
Base.copyFile(sketchFile, properPdeFile);
22162216
} catch (IOException e) {
22172217
Base.showWarning(_("Error"), _("Could not copy to a proper location."), e);
22182218
return false;

0 commit comments

Comments
 (0)