File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
kotlin-eclipse-ui/src/org/jetbrains/kotlin/ui/refactorings/rename Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -37,15 +37,14 @@ public class KotlinRenameProcessor(
3737 val isFromScript : Boolean ) : RenameProcessor() {
3838 val jetElement = element.psi
3939
40- val project = KotlinPsiManager .getJavaProject(jetElement)
41-
4240 override fun isApplicable (): Boolean = true
4341
4442 override fun loadParticipants (status : RefactoringStatus ? , sharedParticipants : SharableParticipants ? ): Array <out RefactoringParticipant > {
4543 val affectedNatures = if (isFromScript) {
4644 arrayOf(KotlinNature .KOTLIN_NATURE )
4745 } else {
48- JavaProcessors .computeAffectedNatures(project)
46+ val project = KotlinPsiManager .getJavaProject(jetElement)
47+ if (project != null ) JavaProcessors .computeAffectedNatures(project) else emptyArray()
4948 }
5049
5150 return ParticipantManager .loadRenameParticipants(
You can’t perform that action at this time.
0 commit comments