package ua.anironglass.template;

import android.app.Application;
import android.content.Context;
import android.support.annotation.NonNull;

import timber.log.Timber;
import ua.anironglass.template.injection.components.ApplicationComponent;
import ua.anironglass.template.injection.components.DaggerApplicationComponent;
import ua.anironglass.template.injection.modules.ApplicationModule;

public class App extends Application {

    private ApplicationComponent mApplicationComponent;

    @Override
    public void onCreate() {
        super.onCreate();

        initializeComponent();
        initializeTimber();
    }

    @NonNull
    public static App get(@NonNull Context context) {
        return (App) context.getApplicationContext();
    }

    @NonNull
    public ApplicationComponent getComponent() {
        return mApplicationComponent;
    }

    private void initializeComponent() {
        mApplicationComponent = DaggerApplicationComponent.builder()
                .applicationModule(new ApplicationModule(this))
                .build();
    }

    private void initializeTimber() {
        if (BuildConfig.DEBUG) {
            Timber.plant(new Timber.DebugTree());
        }
    }

}
@@ -555,39 +555,8 @@
 );%0A%0A
-        initializeComponent();%0A
     
@@ -575,24 +575,24 @@
 zeTimber();%0A
+
     %7D%0A%0A    @
@@ -710,37 +710,24 @@
 t();%0A    %7D%0A%0A
-    @NonNull%0A
     public A
@@ -771,22 +771,27 @@
         
-return
+if (null ==
  mApplic
@@ -808,66 +808,24 @@
 nent
-;%0A    %7D%0A%0A    private void initializeComponent() %7B%0A
+) %7B%0A      
       
-  
 mApp
@@ -897,16 +897,20 @@
         
+    
 .applica
@@ -965,16 +965,20 @@
         
+  
+  
 .build()
@@ -975,24 +975,72 @@
   .build();%0A
+        %7D%0A        return mApplicationComponent;%0A
     %7D%0A%0A    p

Fix ApplicationComponent