From bdec03514afc66a7d2b9292e0f5ca621e7c8b52f Mon Sep 17 00:00:00 2001 From: LucasGGamerM Date: Thu, 15 May 2025 08:34:40 -0300 Subject: [PATCH] style(status-display-item): move bracket around to make it more neat It's in the check for the account parameter existing --- .../joinmastodon/android/ui/displayitems/StatusDisplayItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java index fa0a5d986..568c569de 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java +++ b/mastodon/src/main/java/org/joinmastodon/android/ui/displayitems/StatusDisplayItem.java @@ -184,7 +184,7 @@ public abstract class StatusDisplayItem{ ScheduledStatus scheduledStatus=parentObject instanceof ScheduledStatus s ? s : null; // Check if account is null. This should never happen, but it seems to do in latest versions of glitch-soc - if (scheduledStatus == null && status.account == null || (status.reblog != null && status.reblog.account == null) || (status.quote != null) && status.quote.account == null) { + if (scheduledStatus == null && status.account == null || (status.reblog != null && status.reblog.account == null) || (status.quote != null && status.quote.account == null)) { throw new Exception("status " + status.url + " has null account field"); }