Skip to content

Commit

Permalink
Fix use the correct reference.
Browse files Browse the repository at this point in the history
it was used file, wich was a null pointer, use sketchFile instead.
  • Loading branch information
gerito1 committed Feb 26, 2015
1 parent 0ae9e3a commit 2dbe005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/processing/app/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -2212,7 +2212,7 @@ protected boolean handleOpenInternal(File sketchFile) {
// copy the sketch inside
File properPdeFile = new File(properFolder, sketchFile.getName());
try {
Base.copyFile(file, properPdeFile);
Base.copyFile(sketchFile, properPdeFile);
} catch (IOException e) {
Base.showWarning(_("Error"), _("Could not copy to a proper location."), e);
return false;
Expand Down

0 comments on commit 2dbe005

Please sign in to comment.