Skip to content

Commit 80378cd

Browse files
committed
adding a null check
1 parent 6aa6bd0 commit 80378cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/fragments/NoteFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class NoteFragment : Fragment() {
8787
}
8888
}
8989

90-
fun getCurrentNoteViewText() = view.notes_view.text.toString()
90+
fun getCurrentNoteViewText() = view.notes_view?.text.toString()
9191

9292
private fun getTextGravity() = when (context.config.gravity) {
9393
GRAVITY_CENTER -> Gravity.CENTER_HORIZONTAL

0 commit comments

Comments
 (0)