mirror of https://github.com/noisymime/Arduino.git
Fix use the correct reference.
it was used file, wich was a null pointer, use sketchFile instead.
This commit is contained in:
parent
0ae9e3a0d0
commit
2dbe0059c5
|
@ -2212,7 +2212,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||||
// copy the sketch inside
|
// copy the sketch inside
|
||||||
File properPdeFile = new File(properFolder, sketchFile.getName());
|
File properPdeFile = new File(properFolder, sketchFile.getName());
|
||||||
try {
|
try {
|
||||||
Base.copyFile(file, properPdeFile);
|
Base.copyFile(sketchFile, properPdeFile);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
Base.showWarning(_("Error"), _("Could not copy to a proper location."), e);
|
Base.showWarning(_("Error"), _("Could not copy to a proper location."), e);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue