title: Android Java Dagger Inject Problems
body: <p><strong>My AppComponent</strong></p>
  <pre><code> @Singleton
   @Component(modules = {SplashModule.class})
     public interface AppComponent  {
       void inject(SplashActivity splashActivity);//this is inject activity
      
   }
  </code></pre>
  <p><strong>Splash Module</strong></p>
  <pre><code>@Module
  public class SplashModule {
  
     @Provides
     @Singleton
     static SplashInteract provideSplashInteract(){
        return new SplashInteract();//instance interact
      };
  
     @Provides
     @Singleton
      SplashPresenter provideSplashPresenter(SplashInteract splashInteract){
        return new SplashPresenter(splashInteract);//instance SplashPresenter
       };
   }
  </code></pre>
  <p><strong>Splash Presenter</strong></p>
  <pre><code> public class SplashPresenter implements ISplashContract.Presenter {
  
    ISplashContract.View mView;
   SplashInteract splashInteract;
  
  
  public SplashPresenter(SplashInteract splashInteract) {
      this.splashInteract =splashInteract;
  }
  
  public void bindView(ISplashContract.View mView) {
      this.mView = mView;
  }
  
     @Override
      public void attach() {
  
      this.mView.startAnimation();//start splash animation
    }
  
    @Override
     public void start(Activity activity) {
      this.splashInteract.SplashScreenAnimation(activity);// add interact methods
      }
   }
  </code></pre>
  <p><strong>Splash Activity</strong></p>
  <pre><code> public class SplashActivity extends AppCompatActivity implements ISplashContract.View{
  
   @Inject SplashPresenter splashPresenter;
  
     @Override
     protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_splash);
      getAppComponent().inject(this);//call BaseApp DaggerAppComponent 
      splashPresenter.attach();
      splashPresenter.bindView(this);
    }
  
  
      @Override
      public void startAnimation() {
      this.splashPresenter.start(this);
     }
  
   }
  </code></pre>
  <p><strong>Base App</strong></p>
  <pre><code> public class BaseApp  extends Application {
  
   private  static AppComponent appComponent;
  
    @Override
    public void onCreate() {
      super.onCreate();
      setUp();
    }
  
     private void setUp() {
      appComponent = DaggerAppComponent.builder().build();//Call Component in BaseApp
     }
  
     public static AppComponent getAppComponent() {
      return appComponent;
     }
  }
  </code></pre>
  <p><strong>Hi Everyone</strong></p>
  <p><strong>I am writing a project, I want to use dagger, but I am inexperienced at this. This code gives a NullPointerException error. I could not find what I am doing wrong.</strong></p>
  <p><strong>I need help and I will be glad if those who know better than the dagger guide me</strong></p>