int episode = Integer.parseInt(spl[1]) + de;
try {
SeasonResult res = show.getSeason(spl[0]);
SeasonEpisodeResult[] eps = res.getEpisodes();
SeasonEpisodeResult last = eps[eps.length - 1];
<BUG>if (Integer.parseInt(last.getEpisode()) >= episode) {

episodeCodeCommand = String.format("S%sE%s", spl[0], episode);
} else {
group.sendMessage(mb.escaped("There is no episode ").bold(true).escaped("S%sE%s", spl[0], episode).bold(false).escaped(" for ").bold(true).escaped(show.display).bold(false));
return;
}
} catch (NullPointerException | ArrayIndexOutOfBoundsException ex) {
ex.printStackTrace();</BUG>
group.sendMessage(mb.escaped("There is no episode ").bold(true).escaped("S%sE%s", spl[0], episode).bold(false).escaped(" for ").bold(true).escaped(show.display).bold(false));

int episode = Integer.parseInt(spl[1]) + de;
try {
SeasonResult res = show.getSeason(spl[0]);
SeasonEpisodeResult[] eps = res.getEpisodes();
SeasonEpisodeResult last = eps[eps.length - 1];
if (Integer.parseInt(last.getEpisode()) < episode) {
throw new NullPointerException(); // gets caught right below
}
episodeCode = String.format("S%sE%s", spl[0], episode);
} catch (NullPointerException | ArrayIndexOutOfBoundsException ex) {
group.sendMessage(mb.escaped("There is no episode ").bold(true).escaped("S%sE%s", spl[0], episode).bold(false).escaped(" for ").bold(true).escaped(show.display).bold(false));
