Skip to content

Краш при попытке работы с ДСЛ #4

@Maksim2355

Description

@Maksim2355

Запускаю на эмуляторе pixel api 31 следующий код в методе onCreate в классе-наследнике Application

initStrictMode(enable = true, enableDefaults = false) {
    threadPolicy {
        diskWrites = true

        penalty {
            log = true
            dialog = true
        }
    }
}

Выпадает краш при запуске приложения

Caused by: java.lang.NullPointerException: Attempt to read from field 'int android.os.StrictMode$VmPolicy.mask' on a null object reference

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions