Skip to content
Snippets Groups Projects
Commit b3b5f7f1 authored by Sebastian's avatar Sebastian
Browse files

Fix NPE when displaying introduction requests with null text

parent f8809f50
No related branches found
No related tags found
No related merge requests found
Pipeline #9250 passed
......@@ -81,12 +81,14 @@ fun ConversationRequestItemView(
val noticeColor = if (m.isIncoming) MaterialTheme.colors.textSecondary else MaterialTheme.colors.privateMessageDate
ConversationItemView(m, onDelete) {
Column(Modifier.width(IntrinsicSize.Max)) {
Text(
m.text!!,
fontSize = 16.sp,
color = textColor,
modifier = Modifier.padding(12.dp, 8.dp).align(Alignment.Start)
)
if (m.text != null) {
Text(
m.text!!,
fontSize = 16.sp,
color = textColor,
modifier = Modifier.padding(12.dp, 8.dp).align(Alignment.Start)
)
}
Column(
Modifier.fillMaxWidth().background(noticeBackground).padding(12.dp, 8.dp)
) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment