summaryrefslogtreecommitdiff
path: root/starts/meaning-vm/level-0/concept.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'starts/meaning-vm/level-0/concept.cpp')
-rw-r--r--starts/meaning-vm/level-0/concept.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/starts/meaning-vm/level-0/concept.cpp b/starts/meaning-vm/level-0/concept.cpp
index 9bb772d..0661edd 100644
--- a/starts/meaning-vm/level-0/concept.cpp
+++ b/starts/meaning-vm/level-0/concept.cpp
@@ -12,6 +12,7 @@ concept* concept::id()
void concept::link(concept* type, concept* target)
{
+ if (type == 0 || target == 0) { throw null_reference(); }
links.insert({type, target});
}