Error When Closing Final Tab: "Cannot Read Properties of Null (reading 'jstree')"

Wappler Version: 7.0.0 Beta 31
Operating System: Windows 11


Expected behavior

When working on a project with multiple files open (pages and server actions), I expect to be able to close all tabs cleanly—without errors—especially when closing the final remaining tab.


Actual behavior

If I open several pages and server actions and then begin closing them, everything seems fine—until I click on close all. At that point, Wappler throws the following error:

Cannot read properties of null (reading 'jstree')

This happens consistently when closing the last open file. The editor stays open, but the error dialog appears unexpectedly.


How to reproduce

  1. Open multiple tabs (e.g., several HTML pages and server actions).
  2. Then close alll actions and pages by clicking on close all in right click context menu.
  3. When the final tab is closed, the error pops up.
  4. This occurs whether the final tab is a server action or a regular page.

Screenshot

(See below for the screenshot of the error message)


Notes

  • The error doesn’t crash Wappler, but it's disruptive and might indicate a problem in how the file tree or tab management is handled behind the scenes.
  • Happy to provide more details or logs if needed.

Let me know if you need anything else!

This is now fixed in Wappler 7 beta 32.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.