Fixed player page response when no bukkit servers were online

This commit is contained in:
Rsl1122 2018-04-02 19:22:38 +03:00
parent 76aac83cc9
commit a17ab55bc1
2 changed files with 76 additions and 76 deletions

View File

@ -53,7 +53,7 @@ public class PlayerPageHandler extends PageHandler {
InfoSystem.getInstance().generateAndCachePlayerPage(uuid); InfoSystem.getInstance().generateAndCachePlayerPage(uuid);
response = ResponseCache.loadResponse(PageId.PLAYER.of(uuid)); response = ResponseCache.loadResponse(PageId.PLAYER.of(uuid));
} }
return response; return response != null ? response : notFound("No Bukkit servers online to perform the request.");
} else { } else {
return notFound("Player has not played on this server."); return notFound("Player has not played on this server.");
} }