This is a bug.  Should iterate over ````partition_table_len```` not ````num_partitions```` which will still be zero here.  Oops.