summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/network_content_gui.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp
index 2497c5a38..c5ccd933b 100644
--- a/src/network/network_content_gui.cpp
+++ b/src/network/network_content_gui.cpp
@@ -573,9 +573,11 @@ public:
break;
case WKC_SPACE:
- _network_content_client.ToggleSelectedState(this->selected);
- this->content.ForceResort();
- this->SetDirty();
+ if (this->selected != NULL) {
+ _network_content_client.ToggleSelectedState(this->selected);
+ this->content.ForceResort();
+ this->SetDirty();
+ }
return ES_HANDLED;
default: return ES_NOT_HANDLED;