Removed assertion since it could appear in normal situation.

This commit is contained in:
Evgeny Gerashchenko
2014-01-16 17:21:06 +04:00
parent 292f0e4a38
commit 7c059e2ae8
@@ -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>() {