Fix potential NPE, setup environment earlier

This commit is contained in:
cpfeiffer 2016-06-25 18:57:36 +02:00
parent 0209b1b403
commit 2fa166e381
1 changed files with 2 additions and 1 deletions

View File

@ -120,12 +120,13 @@ public class GBApplication extends Application {
setupExceptionHandler();
GB.environment = GBEnvironment.createDeviceEnvironment();
setupDatabase(this);
deviceManager = new DeviceManager(this);
deviceService = createDeviceService();
GB.environment = GBEnvironment.createDeviceEnvironment();
// mActivityDatabaseHandler = new ActivityDatabaseHandler(context);
loadBlackList();