Skip to content

Commit

Permalink
View is nullable when not attached, so @nullable annotation is helpful.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cain Wong committed Aug 10, 2016
1 parent 7a25597 commit 232dd07
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package io.appflate.droidmvp;

import android.support.annotation.Nullable;

/**
* Base class that implements the DroidMVPPresenter interface and provides a base implementation
* for
Expand Down Expand Up @@ -49,7 +51,7 @@ public M getPresentationModel() {
return presentationModel;
}

protected V getMvpView() {
@Nullable protected V getMvpView() {
return mvpView;
}
}
Expand Down

0 comments on commit 232dd07

Please sign in to comment.