This commit is contained in:
Evgeny Gerashchenko
2013-02-01 17:45:27 +04:00
parent ffbcdb7b49
commit 7f5dfd7319
@@ -229,10 +229,10 @@ public class JetSourceNavigationHelper {
@Nullable
private static JetClassOrObject getSourceForNamedClassOrObject(@NotNull JetClassOrObject decompiledClassOrObject) {
FqName classFqName = JetPsiUtil.getFQName((JetNamedDeclaration) decompiledClassOrObject);
FqName classFqName = JetPsiUtil.getFQName(decompiledClassOrObject);
assert classFqName != null;
GlobalSearchScope librarySourcesScope = createLibrarySourcesScope((JetNamedDeclaration) decompiledClassOrObject);
GlobalSearchScope librarySourcesScope = createLibrarySourcesScope(decompiledClassOrObject);
if (librarySourcesScope == GlobalSearchScope.EMPTY_SCOPE) { // .getProject() == null for EMPTY_SCOPE, and this breaks code
return null;
}