From 0da2123d50fe90f586c4c2a9a72b661db491a503 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Mon, 14 May 2012 15:20:46 +0000 Subject: [PATCH] Eo: add a check for future static classes. SVN revision: 71078 --- legacy/eobj/lib/eo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legacy/eobj/lib/eo.c b/legacy/eobj/lib/eo.c index 10bbe27f61..89a2e2318c 100644 --- a/legacy/eobj/lib/eo.c +++ b/legacy/eobj/lib/eo.c @@ -147,6 +147,10 @@ _dich_copy_all(Eo_Class *dst, const Eo_Class *src) { size_t j; const Eo_Class *op_klass = ID_CLASS_GET(i + 1); + /* Can be NULL because of future static classes. */ + if (!op_klass) + continue; + size_t num_ops = op_klass->desc->ops.count; _dich_chain_alloc(dc1, num_ops);