diff options
Diffstat (limited to 'source/cWebAdmin.cpp')
-rw-r--r-- | source/cWebAdmin.cpp | 7 |
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>"; } |