Skip to content

Ошибка при вызове метода process в PrintCorrectionIncomeReceiptCommand #411

@fallGamlet

Description

@fallGamlet

в классе PrintCorrectionIncomeReceiptCommand возникает ошибка NPE
java.lang.NullPointerException: convertImplicitIntentToExplicitIntent(NAME, context.applicationContext) must not be null

fun process(context: Context, callback: IntegrationManagerCallback) {
    IntegrationManagerImpl
        .convertImplicitIntentToExplicitIntent(NAME, context.applicationContext)
        .firstOrNull()
        ?.let { component ->
            IntegrationManagerImpl(context.applicationContext).call(
                NAME,
                component,
                this,
                ActivityStarter(context),
                callback,
                Handler(Looper.getMainLooper())
            )
        }
}

потому что IntegrationManagerImpl.convertImplicitIntentToExplicitIntent(NAME, context.applicationContext) возвращает NULL

const val NAME = "evo.v2.receipt.correction.income.printReceipt"

https://github.com/evotor/integration-library/blob/2e08ffd04f5c7ad69e0b8f88e4195eba8c662204/src/main/java/ru/evotor/framework/core/action/command/print_receipt_command/PrintCorrectionIncomeReceiptCommand.kt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions