Skip to content

Commit

Permalink
null (no reminder) is a valid result for getReminder; silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrove-oss committed Feb 18, 2022
1 parent 474053b commit 0b3313a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@ private static Reminder[] toReminderArray(Response response) {
}
return res.toArray(new Reminder[res.size()]);
} else {
logger.warning("toReminderArray: Unexpected response: "+val);
if (val != null) {
logger.warning("toReminderArray: Unexpected response: "+val);
}
return new Reminder[0];
}
}
Expand Down Expand Up @@ -213,7 +215,9 @@ private static Subscription[] toSubscriptionArray(Response response) {
}
return res.toArray(new Subscription[res.size()]);
} else {
logger.warning("toSubscriptionArray: Unexpected response: "+val);
if (val != null) {
logger.warning("toSubscriptionArray: Unexpected response: "+val);
}
return new Subscription[0];
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ private static Reminder[] toReminderArray(HttpResponse<Buffer> resp) {
}
return res.toArray(new Reminder[res.size()]);
} else {
logger.warning("toReminderArray: Unexpected response: "+val);
if (val != null) {
logger.warning("toReminderArray: Unexpected response: "+val);
}
return new Reminder[0];
}
}
Expand Down Expand Up @@ -180,7 +182,9 @@ private static Subscription[] toSubscriptionArray(HttpResponse<Buffer> resp) {
}
return res.toArray(new Subscription[res.size()]);
} else {
logger.warning("toSubscriptionArray: Unexpected response: "+val);
if (val != null) {
logger.warning("toSubscriptionArray: Unexpected response: "+val);
}
return new Subscription[0];
}
}
Expand Down

0 comments on commit 0b3313a

Please sign in to comment.