Skip to content

Commit

Permalink
Merge pull request #19764 from rng70-or/trunk
Browse files Browse the repository at this point in the history
fix: potential null dereference on serviceId
  • Loading branch information
ParaskP7 authored Jul 10, 2024
2 parents 13c623e + bc38c95 commit 502a11a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private static PublicizeService getServiceFromCursor(Cursor c) {
}

public static boolean onlyExternalConnections(String serviceId) {
if (serviceId == null && serviceId.isEmpty()) {
if (serviceId == null || serviceId.isEmpty()) {
return false;
}

Expand Down

0 comments on commit 502a11a

Please sign in to comment.