summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/JID')
-rw-r--r--Swiften/JID/JID.cpp1
-rw-r--r--Swiften/JID/JID.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/JID/JID.cpp b/Swiften/JID/JID.cpp
index 7b51867..e1502f1 100644
--- a/Swiften/JID/JID.cpp
+++ b/Swiften/JID/JID.cpp
@@ -132,6 +132,7 @@ struct EscapedCharacterFormatter {
namespace Swift {
JID::JID(const char* jid) : valid_(true) {
+ assert(jid);
initializeFromString(std::string(jid));
}
diff --git a/Swiften/JID/JID.h b/Swiften/JID/JID.h
index 798860d..eac1e2a 100644
--- a/Swiften/JID/JID.h
+++ b/Swiften/JID/JID.h
@@ -47,6 +47,8 @@ namespace Swift {
/**
* See std::string constructor.
+ *
+ * Must not be NULL.
*/
JID(const char*);