mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
Fix "NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE" SpotBugs complaint
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
16ca03cb5c
commit
4790e7b7e4
@ -74,6 +74,7 @@ public class AddParticipantsToConversation extends Worker {
|
|||||||
String credentials = ApiUtils.getCredentials(user.getUsername(), user.getToken());
|
String credentials = ApiUtils.getCredentials(user.getUsername(), user.getToken());
|
||||||
|
|
||||||
RetrofitBucket retrofitBucket;
|
RetrofitBucket retrofitBucket;
|
||||||
|
if (selectedUserIds != null) {
|
||||||
for (String userId : selectedUserIds) {
|
for (String userId : selectedUserIds) {
|
||||||
retrofitBucket = ApiUtils.getRetrofitBucketForAddParticipant(apiVersion, user.getBaseUrl(),
|
retrofitBucket = ApiUtils.getRetrofitBucketForAddParticipant(apiVersion, user.getBaseUrl(),
|
||||||
conversationToken,
|
conversationToken,
|
||||||
@ -83,7 +84,9 @@ public class AddParticipantsToConversation extends Worker {
|
|||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.blockingSubscribe();
|
.blockingSubscribe();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (selectedGroupIds != null) {
|
||||||
for (String groupId : selectedGroupIds) {
|
for (String groupId : selectedGroupIds) {
|
||||||
retrofitBucket = ApiUtils.getRetrofitBucketForAddParticipantWithSource(
|
retrofitBucket = ApiUtils.getRetrofitBucketForAddParticipantWithSource(
|
||||||
apiVersion,
|
apiVersion,
|
||||||
@ -97,7 +100,9 @@ public class AddParticipantsToConversation extends Worker {
|
|||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.blockingSubscribe();
|
.blockingSubscribe();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (selectedCircleIds != null) {
|
||||||
for (String circleId : selectedCircleIds) {
|
for (String circleId : selectedCircleIds) {
|
||||||
retrofitBucket = ApiUtils.getRetrofitBucketForAddParticipantWithSource(
|
retrofitBucket = ApiUtils.getRetrofitBucketForAddParticipantWithSource(
|
||||||
apiVersion,
|
apiVersion,
|
||||||
@ -111,7 +116,9 @@ public class AddParticipantsToConversation extends Worker {
|
|||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.blockingSubscribe();
|
.blockingSubscribe();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (selectedEmails != null) {
|
||||||
for (String email : selectedEmails) {
|
for (String email : selectedEmails) {
|
||||||
retrofitBucket = ApiUtils.getRetrofitBucketForAddParticipantWithSource(
|
retrofitBucket = ApiUtils.getRetrofitBucketForAddParticipantWithSource(
|
||||||
apiVersion,
|
apiVersion,
|
||||||
@ -125,6 +132,7 @@ public class AddParticipantsToConversation extends Worker {
|
|||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.blockingSubscribe();
|
.blockingSubscribe();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
eventBus.post(new EventStatus(user.getId(), EventStatus.EventType.PARTICIPANTS_UPDATE, true));
|
eventBus.post(new EventStatus(user.getId(), EventStatus.EventType.PARTICIPANTS_UPDATE, true));
|
||||||
return Result.success();
|
return Result.success();
|
||||||
|
Loading…
Reference in New Issue
Block a user