Skip to content

Commit

Permalink
Fix bug if the matlab_src_dir does not contain any MATLAB files.
Browse files Browse the repository at this point in the history
It would throw an exception on the call ``root.safe_getmembers()``
  • Loading branch information
joeced committed Jan 4, 2024
1 parent ebcb253 commit e489a83
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sphinxcontrib/mat_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,12 @@ def analyze(app):
MatObject.sphinx_app = app # pass app to MatObject cls

entities_table.clear()
entities_name_map.clear()

# Set the root object and get root members.
root = MatObject.matlabify("")
if not root:
return
root.safe_getmembers()
recursive_find_all(root)

Expand Down

0 comments on commit e489a83

Please sign in to comment.