Fixed IAE from JetDecompiledData.isKotlinFile on startup
#KT-1595 fixed #EA-34860 fixed
This commit is contained in:
@@ -34,8 +34,8 @@ import org.jetbrains.jet.plugin.JetHighlighter;
|
|||||||
public class JetContentBasedFileSubstitutor implements ContentBasedClassFileProcessor {
|
public class JetContentBasedFileSubstitutor implements ContentBasedClassFileProcessor {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isApplicable(Project project, VirtualFile file) {
|
public boolean isApplicable(@Nullable Project project, @NotNull VirtualFile file) {
|
||||||
return JetDecompiledData.isKotlinFile(project, file);
|
return project != null && JetDecompiledData.isKotlinFile(project, file);
|
||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
|
|||||||
Reference in New Issue
Block a user