Commit ab2f8348 authored by Tiago Cunha's avatar Tiago Cunha

Fixes a NPE

parent 10a5e85d
......@@ -75,13 +75,20 @@ public class MainActivity extends AbstractAuthedActivity implements MainContract
protected void onResume() {
isForeground = true;
super.onResume();
presenter.bindView(this);
if (presenter != null) {
presenter.bindView(this);
}
}
@Override
protected void onPause() {
isForeground = false;
presenter.release();
if (presenter != null) {
presenter.release();
}
super.onPause();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment