Fixed possible NPE.
This commit is contained in:
parent
f3b956c89f
commit
9bb70aa405
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Reference in a new issue