adding a null check

This commit is contained in:
tibbi 2017-06-22 21:00:08 +02:00
parent 6aa6bd073b
commit 80378cd18e

View File

@ -87,7 +87,7 @@ class NoteFragment : Fragment() {
}
}
fun getCurrentNoteViewText() = view.notes_view.text.toString()
fun getCurrentNoteViewText() = view.notes_view?.text.toString()
private fun getTextGravity() = when (context.config.gravity) {
GRAVITY_CENTER -> Gravity.CENTER_HORIZONTAL