summaryrefslogtreecommitdiffstats
path: root/src/collections.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/collections.c')
-rw-r--r--src/collections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/collections.c b/src/collections.c
index be4d898..337f0f6 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -53,7 +53,7 @@ prefix ## _size(CollType coll) \
ElemType \
prefix ## _get_at(CollType coll, unsigned index) \
{ \
- if (index > INT_MAX) \
+ if (!coll || index > INT_MAX) \
return NULL; \
else \
return (ElemType)raptor_sequence_get_at(coll, (int)index); \