Skip to content

Commit 57bb5ef

Browse files
chaorenTeamCityServer
authored and
TeamCityServer
committed
Fix method invocation with reflection on static method.
#379
1 parent afa1565 commit 57bb5ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/org/jetbrains/plugins/scala/lang/references/ScalaReferenceContributor.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class FilePathReferenceProvider extends PsiReferenceProvider {
105105
try {
106106
val createMethod = Class.forName("com.intellij.psi.impl.source.resolve.reference.impl.providers.PackagePrefixFileSystemItemImpl").getMethod("create", classOf[PsiDirectory])
107107
createMethod.setAccessible(true)
108-
createMethod.invoke(directory)
108+
createMethod.invoke(null, directory)
109109
} catch {
110110
case t: Exception => LOG.warn(t)
111111
}

0 commit comments

Comments
 (0)