summaryrefslogtreecommitdiffstats
path: root/include/framework/InternalLevel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/framework/InternalLevel.h')
-rw-r--r--include/framework/InternalLevel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/framework/InternalLevel.h b/include/framework/InternalLevel.h
index 983ec6a..b9866b8 100644
--- a/include/framework/InternalLevel.h
+++ b/include/framework/InternalLevel.h
@@ -87,6 +87,10 @@ public:
}
Shard *get_merged_shard() {
+ if (m_shard_cnt == 0) {
+ return nullptr;
+ }
+
Shard *shards[m_shard_cnt];
for (size_t i=0; i<m_shard_cnt; i++) {