- for(i = 0; i < strlen(table->contents[row][col]); i++) {
- table->table_lines[row][pos++] = table->contents[row][col][i];
+ if(table->contents[row][col]) {
+ for(i = 0; i < strlen(table->contents[row][col]); i++) {
+ table->table_lines[row][pos++] = table->contents[row][col][i];
+ }
+ } else {
+ i = 4;
+ table->table_lines[row][pos++] = 'N';
+ table->table_lines[row][pos++] = 'U';
+ table->table_lines[row][pos++] = 'L';
+ table->table_lines[row][pos++] = 'L';