Skip to content

Commit

Permalink
Adding check to fix #83
Browse files Browse the repository at this point in the history
  • Loading branch information
imbur committed Jul 10, 2018
1 parent b7e6e77 commit 2a30332
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,11 @@ private void gotoTagSet(Goto gotoBlock, String gotoTag, boolean isScoped) {
*/
private void exportBlocks(EList<Block> sameLevelBlocks) throws SimulinkApiException {

// Check if there is at least one block present at the given level
if (sameLevelBlocks.size() <= 0) {
return;
}

// BlockFQN and block size map
Map<Block, BlockLayoutSpecification> blocksOriginalSize = new HashMap<Block, BlockLayoutSpecification>();

Expand Down

0 comments on commit 2a30332

Please sign in to comment.