Fixed possible NPE.

This commit is contained in:
Felix Ableitner 2016-02-01 13:46:39 +01:00
parent f3b956c89f
commit 9bb70aa405

View file

@ -104,7 +104,7 @@ class MainActivity extends EnsichatActivity {
.detach(contactsFragment)
.add(android.R.id.content, new ChatFragment(address))
.commit()
getSupportActionBar.setDisplayHomeAsUpEnabled(true)
Option(getSupportActionBar).foreach(_.setDisplayHomeAsUpEnabled(true))
}
/**