1
0
mirror of https://github.com/chylex/IntelliJ-Inspection-Lens.git synced 2025-05-04 08:34:06 +02:00

Fix exception if async description supplier returns null

This commit is contained in:
chylex 2022-08-05 09:47:02 +02:00
parent f29b80ac94
commit ef18a1d9b5
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -13,7 +13,7 @@ open class HighlighterWithInfo private constructor(val highlighter: RangeHighlig
operator fun component2() = info
class Async(highlighter: RangeHighlighter, info: HighlightInfo, private val provider: AsyncDescriptionSupplier) : HighlighterWithInfo(highlighter, info) {
fun requestDescription(callback: Consumer<String>) {
fun requestDescription(callback: Consumer<String?>) {
provider.requestDescription().onSuccess(callback)
}
}