diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-12-13 14:52:46 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-12-13 14:52:46 (GMT) |
commit | 902e2ee8e61acb18d2819e8a59a28921f85bbd77 (patch) | |
tree | 792f2ad256c8734536bf58540122f882ca63f290 /Swiften/StreamStack | |
parent | 8414b9b6dd1ecf9af622cb291934279c3c52a6a4 (diff) | |
download | swift-contrib-902e2ee8e61acb18d2819e8a59a28921f85bbd77.zip swift-contrib-902e2ee8e61acb18d2819e8a59a28921f85bbd77.tar.bz2 |
Avoid crash due to misuse of XMPPLayer
Diffstat (limited to 'Swiften/StreamStack')
-rw-r--r-- | Swiften/StreamStack/HighLayer.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Swiften/StreamStack/HighLayer.cpp b/Swiften/StreamStack/HighLayer.cpp index dc17c2a..0f76f22 100644 --- a/Swiften/StreamStack/HighLayer.cpp +++ b/Swiften/StreamStack/HighLayer.cpp @@ -19,8 +19,10 @@ HighLayer::~HighLayer() { } void HighLayer::writeDataToChildLayer(const SafeByteArray& data) { - assert(childLayer); - childLayer->writeData(data); + //assert(childLayer); + if (childLayer) { + childLayer->writeData(data); + } } } |