junichi11 commented on a change in pull request #2301:
URL: https://github.com/apache/netbeans/pull/2301#discussion_r469727791
##########
File path:
java/refactoring.java/src/org/netbeans/modules/refactoring/java/ui/MoveClassUI.java
##########
@@ -305,7 +305,10 @@ public RefactoringUI create(CompilationInfo info,
TreePathHandle[] handles, File
Collection<TreePathHandle> tphs = new
ArrayList<TreePathHandle>();
SourcePositions sourcePositions =
info.getTrees().getSourcePositions();
for (Element ele : e.getEnclosedElements()) {
- Tree leaf = info.getTrees().getPath(ele).getLeaf();
+ TreePath path = info.getTrees().getPath(ele);
+ if(path == null)
Review comment:
Please use curly braces (`{}`) and reformat your changes (select lines >
format) (missing white space after `if`)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists