mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-15 14:12:21 +01:00
Fix NPE
(cherry picked from commit 5ae202766d99887b6a748dd0463124898a35bf3d)
This commit is contained in:
parent
1547eb96d0
commit
6c3f07dc75
1 changed files with 1 additions and 1 deletions
|
@ -1561,7 +1561,7 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
|
|||
final var script = locale.getScript();
|
||||
for (final var m : messages) {
|
||||
if (getMode() != MODE_MULTI) {
|
||||
final var resource = m.getCounterpart().getResource();
|
||||
final var resource = m.getCounterpart() == null ? null : m.getCounterpart().getResource();
|
||||
if (resource != null && resource.length() < 10) {
|
||||
anyMatchSpam = true;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue