Skip to content

Commit 502a11a

Browse files
authored
Merge pull request #19764 from rng70-or/trunk
fix: potential null dereference on serviceId
2 parents 13c623e + bc38c95 commit 502a11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/src/main/java/org/wordpress/android/datasets/PublicizeTable.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private static PublicizeService getServiceFromCursor(Cursor c) {
157157
}
158158

159159
public static boolean onlyExternalConnections(String serviceId) {
160-
if (serviceId == null && serviceId.isEmpty()) {
160+
if (serviceId == null || serviceId.isEmpty()) {
161161
return false;
162162
}
163163

0 commit comments

Comments
 (0)