MyApp#onCreate called after EasyProvider#onCreate
sababado opened this issue · comments
The app crashes on start. I get a null pointer exception in the EasyProvider
class https://github.com/sababado/CheckMeOff/blob/master/app/src/main/java/com/sababado/checkmeoff/easyprovider/EasyProvider.java#L103. The null object is _dbHelperClass
. I don't understand how it could be null. The object is initialized in the init method, which is called from the application class MyApp
.
After writing this I believe that EasyProvider#onCreate
is called before the onCreate of the application class. If that is true, how can I allow the developer to specify a database helper class to use, as well as what tables need to be initialized?
Found this issue on http://stackoverflow.com/questions/9873669/how-do-i-catch-content-provider-initialize.
Fixed in aabd817