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 58
58
patches/7750.diff
59
59
patches/7910.diff
60
60
patches/7921.diff
61
+ patches/7923_draft.diff
61
62
patches/mvn-sh.diff
62
63
patches/generate-dependencies.diff
63
64
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