Permalink
Browse files

Fixed IAE from JetDecompiledData.isKotlinFile on startup

 #KT-1595 fixed
 #EA-34860 fixed
  • Loading branch information...
1 parent 178d822 commit dcfeb4bc2cdb01a00d22addacf51d0ad769fda5d Evgeny Gerashchenko committed Mar 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 idea/src/org/jetbrains/jet/plugin/libraries/JetContentBasedFileSubstitutor.java
@@ -34,8 +34,8 @@
public class JetContentBasedFileSubstitutor implements ContentBasedClassFileProcessor {
@Override
- public boolean isApplicable(Project project, VirtualFile file) {
- return JetDecompiledData.isKotlinFile(project, file);
+ public boolean isApplicable(@Nullable Project project, @NotNull VirtualFile file) {
+ return project != null && JetDecompiledData.isKotlinFile(project, file);
}
@NotNull

0 comments on commit dcfeb4b

Please sign in to comment.