if (level && layout && *layout == UnSet)
*layout = imsm_level_to_layout(*level);
- if (chunk && (*chunk == UnSet || *chunk == 0) && super->orom)
+ if (chunk && (*chunk == UnSet || *chunk == 0) &&
+ super && super->orom)
*chunk = imsm_orom_default_chunk(super->orom);
}