summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2013-08-16 08:27:13 (GMT)
committerKevin Smith <git@kismith.co.uk>2013-08-16 11:46:12 (GMT)
commit1e4b2b1ee68865eaa0670a21ad0a0af1777c8099 (patch)
tree188548e8e597ea2d57ec876f5d02d6d90b4f24a7 /Swiften/JID/JID.cpp
parente4a3c018fe824c0c402dbc3167a113276fbe6e4e (diff)
downloadswift-1e4b2b1ee68865eaa0670a21ad0a0af1777c8099.zip
swift-1e4b2b1ee68865eaa0670a21ad0a0af1777c8099.tar.bz2
Don't allow passing NULL to the JID ctor
Change-Id: I5e0cf477632927e5383b60b7dd8922740a9b5d5d
Diffstat (limited to 'Swiften/JID/JID.cpp')
-rw-r--r--Swiften/JID/JID.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swiften/JID/JID.cpp b/Swiften/JID/JID.cpp
index 0822595..f195f6f 100644
--- a/Swiften/JID/JID.cpp
+++ b/Swiften/JID/JID.cpp
@@ -112,6 +112,7 @@ struct EscapedCharacterFormatter {
#endif
JID::JID(const char* jid) : valid_(true) {
+ assert(jid);
initializeFromString(std::string(jid));
}