Removed assertion since it could appear in normal situation.
This commit is contained in:
@@ -366,7 +366,7 @@ public class DeclarationResolver {
|
||||
Collection<JetFile> files = trace.get(BindingContext.PACKAGE_TO_FILES, aPackage.getFqName());
|
||||
|
||||
if (files == null) {
|
||||
throw new IllegalStateException("declarations corresponding to " + aPackage + " are not found");
|
||||
return Collections.emptyList(); // package can be defined out of Kotlin sources, e. g. in library or Java code
|
||||
}
|
||||
|
||||
declarations = Collections2.transform(files, new Function<JetFile, PsiElement>() {
|
||||
|
||||
Reference in New Issue
Block a user