summaryrefslogtreecommitdiffstats
path: root/source/cWebAdmin.cpp
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-22 13:22:26 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-22 13:22:26 +0200
commite086b931ea7ab329a1142ec26c008cdb22fb065c (patch)
tree2025e2b5c3ab5a80ac9b8264664882c30fc209ad /source/cWebAdmin.cpp
parentNow the web server supports %20 spaces in URLs (diff)
downloadcuberite-e086b931ea7ab329a1142ec26c008cdb22fb065c.tar
cuberite-e086b931ea7ab329a1142ec26c008cdb22fb065c.tar.gz
cuberite-e086b931ea7ab329a1142ec26c008cdb22fb065c.tar.bz2
cuberite-e086b931ea7ab329a1142ec26c008cdb22fb065c.tar.lz
cuberite-e086b931ea7ab329a1142ec26c008cdb22fb065c.tar.xz
cuberite-e086b931ea7ab329a1142ec26c008cdb22fb065c.tar.zst
cuberite-e086b931ea7ab329a1142ec26c008cdb22fb065c.zip
Diffstat (limited to 'source/cWebAdmin.cpp')
-rw-r--r--source/cWebAdmin.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/cWebAdmin.cpp b/source/cWebAdmin.cpp
index dab6fe9e8..9bb8e8e27 100644
--- a/source/cWebAdmin.cpp
+++ b/source/cWebAdmin.cpp
@@ -237,8 +237,11 @@ void cWebAdmin::Request_Handler(webserver::http_request* r)
cPlayerAccum PlayerAccum;
cWorld * World = cRoot::Get()->GetDefaultWorld(); // TODO - Create a list of worlds and players
- World->ForEachPlayer(PlayerAccum);
- Content.append(PlayerAccum.m_Contents);
+ if( World != NULL )
+ {
+ World->ForEachPlayer(PlayerAccum);
+ Content.append(PlayerAccum.m_Contents);
+ }
Content += "</ul><br>";
}