Closed yujincheng08 closed 2 years ago
We have passed in the application object, why are you still calling getApplicationContext()? Application is a subclass of Context. getApplicationContext() may return null.
Override
attachBaseContext
and callAppCenter.start
on it
It was out of our test cases, thanks for the report. Should be fixed in #1639
Fixed in #1639
Description
NPE if
AppCenter.start
is called onApplication.attachBaseContext
. This is becausegetApplicationContext
is still not avaliable then.Repro Steps
Please list the steps used to reproduce your issue.
Application
attachBaseContext
and callAppCenter.start
on itDetails
AppCenter.setLogLevel(Log.VERBOSE)
before your call toAppCenter.start(...)
and include the logs here: