Skip to content

Commit 3590f91

Browse files
committed
[Compiler plugin] Fix another exception triggered by incomplete code in IDE
1 parent 65c53e0 commit 3590f91

File tree

1 file changed

+1
-1
lines changed
  • plugins/kotlin-dataframe/src/org/jetbrains/kotlinx/dataframe/plugin

1 file changed

+1
-1
lines changed

plugins/kotlin-dataframe/src/org/jetbrains/kotlinx/dataframe/plugin/interpret.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ fun KotlinTypeFacade.pluginDataFrameSchema(schemaTypeArg: ConeTypeProjection): P
305305
}
306306

307307
fun KotlinTypeFacade.pluginDataFrameSchema(coneClassLikeType: ConeClassLikeType): PluginDataFrameSchema {
308-
val symbol = coneClassLikeType.toSymbol(session) as FirRegularClassSymbol
308+
val symbol = coneClassLikeType.toSymbol(session) as? FirRegularClassSymbol ?: return PluginDataFrameSchema(emptyList())
309309
val declarationSymbols = if (symbol.isLocal && symbol.resolvedSuperTypes.firstOrNull() != session.builtinTypes.anyType.type) {
310310
val rootSchemaSymbol = symbol.resolvedSuperTypes.first().toSymbol(session) as FirRegularClassSymbol
311311
rootSchemaSymbol.declaredMemberScope(session, FirResolvePhase.DECLARATIONS)

0 commit comments

Comments
 (0)