File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 5858 patches/7750.diff
5959 patches/7910.diff
6060 patches/7921.diff
61+ patches/7923_draft.diff
6162 patches/mvn-sh.diff
6263 patches/generate-dependencies.diff
6364 patches/rename-debugger.diff
Original file line number Diff line number Diff line change 1+ 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
2+ index a72abd44ef..199ffad108 100644
3+ --- a/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/refactoring/MoveRefactoring.java
4+ +++ b/java/java.lsp.server/src/org/netbeans/modules/java/lsp/server/refactoring/MoveRefactoring.java
5+ @@ -423,7 +423,7 @@ public final class MoveRefactoring extends CodeRefactoring {
6+ try {
7+ String path = selectedProject.getPath();
8+ return path != null ? FileOwnerQuery.getOwner(Utils.fromUri(path)) : null;
9+ - } catch (MalformedURLException ex) {
10+ + } catch (MalformedURLException | NullPointerException ex) {
11+ return null;
12+ }
13+ }
14+ @@ -432,7 +432,7 @@ public final class MoveRefactoring extends CodeRefactoring {
15+ try {
16+ String path = selectedRoot.getPath();
17+ return path != null ? Utils.fromUri(path) : null;
18+ - } catch (MalformedURLException ex) {
19+ + } catch (MalformedURLException | NullPointerException ex) {
20+ return null;
21+ }
22+ }
You can’t perform that action at this time.
0 commit comments