Skip to content

Commit bc38c95

Browse files
authored
fix: possible null pointer exception on serviceId
1 parent ef73a7f commit bc38c95

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)