generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #351 from oracle/main
Merging main into telemetry
- Loading branch information
Showing
25 changed files
with
1,588 additions
and
369 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
diff --git a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/refactoring/MoveRefactoring.java b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/refactoring/MoveRefactoring.java | ||
index a72abd44ef..12acbc7081 100644 | ||
--- a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/refactoring/MoveRefactoring.java | ||
+++ b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/refactoring/MoveRefactoring.java | ||
@@ -420,6 +420,9 @@ public final class MoveRefactoring extends CodeRefactoring { | ||
} | ||
|
||
private static Project getSelectedProject(NamedPath selectedProject) { | ||
+ if (selectedProject == null) { | ||
+ return null; | ||
+ } | ||
try { | ||
String path = selectedProject.getPath(); | ||
return path != null ? FileOwnerQuery.getOwner(Utils.fromUri(path)) : null; | ||
@@ -429,6 +432,9 @@ public final class MoveRefactoring extends CodeRefactoring { | ||
} | ||
|
||
private static FileObject getSelectedRoot(NamedPath selectedRoot) { | ||
+ if (selectedRoot == null) { | ||
+ return null; | ||
+ } | ||
try { | ||
String path = selectedRoot.getPath(); | ||
return path != null ? Utils.fromUri(path) : null; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.