Skip to content

Commit 5c097c0

Browse files
committed
Fixed regression: trivial error on String comparison
Fix #5423 The regression has been introduced in: 72f815b Refactor file adding and renaming, and save as handling
1 parent be9bbc3 commit 5c097c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-core/src/processing/app/Sketch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ protected File checkNewFoldername(File newFolder) throws IOException {
250250
// If the folder is actually renamed (as opposed to moved somewhere
251251
// else), check for conflicts using the new filename, but the
252252
// existing folder name.
253-
if(newFolder.getName() != folder.getName())
253+
if (!newFolder.getName().equals(folder.getName()))
254254
checkNewFilename(new File(folder, newPrimary));
255255

256256
return new File(newFolder, newPrimary);

0 commit comments

Comments
 (0)