mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-31 21:48:32 +01:00
Fixed ClassCastExceptions related to InspectResponse #458
This commit is contained in:
parent
d3bf6b4063
commit
8d3afc9286
@ -189,7 +189,7 @@ public class BukkitInformationManager extends InformationManager {
|
|||||||
} else {
|
} else {
|
||||||
pluginsTabContents.put(uuid, contents);
|
pluginsTabContents.put(uuid, contents);
|
||||||
Response inspectResponse = PageCache.loadPage("inspectPage: " + uuid);
|
Response inspectResponse = PageCache.loadPage("inspectPage: " + uuid);
|
||||||
if (inspectResponse != null) {
|
if (inspectResponse != null && inspectResponse instanceof InspectPageResponse) {
|
||||||
((InspectPageResponse) inspectResponse).setInspectPagePluginsTab(contents);
|
((InspectPageResponse) inspectResponse).setInspectPagePluginsTab(contents);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -315,7 +315,7 @@ public class BungeeInformationManager extends InformationManager {
|
|||||||
perServerPluginsTab.put(serverUUID, html);
|
perServerPluginsTab.put(serverUUID, html);
|
||||||
pluginsTabContent.put(uuid, perServerPluginsTab);
|
pluginsTabContent.put(uuid, perServerPluginsTab);
|
||||||
Response inspectResponse = PageCache.loadPage("inspectPage: " + uuid);
|
Response inspectResponse = PageCache.loadPage("inspectPage: " + uuid);
|
||||||
if (inspectResponse != null) {
|
if (inspectResponse != null && inspectResponse instanceof InspectPageResponse) {
|
||||||
((InspectPageResponse) inspectResponse).setInspectPagePluginsTab(getPluginsTabContent(uuid));
|
((InspectPageResponse) inspectResponse).setInspectPagePluginsTab(getPluginsTabContent(uuid));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user