summaryrefslogtreecommitdiff
path: root/include/extensible.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/extensible.h')
-rw-r--r--include/extensible.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/extensible.h b/include/extensible.h
index 2364d2c7e..d412156bb 100644
--- a/include/extensible.h
+++ b/include/extensible.h
@@ -220,7 +220,8 @@ template<typename T>
T* Extensible::Extend(const Anope::string &name, const T &what)
{
T* t = Extend<T>(name);
- *t = what;
+ if (t)
+ *t = what;
return t;
}