Fixed: Exception on FFDec start when simple editor is on

This commit is contained in:
Jindra Petřík
2025-05-01 22:47:35 +02:00
parent f6637af679
commit e55ccf1ca1
2 changed files with 6 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ All notable changes to this project will be documented in this file.
- [#2447] SVG import - gradients can inherit (href) from other gradient types (radial vs linear)
- [#2450] Morphshape replace button/menu is not working (throws exception due to missing icon)
- [#2355] AS1/2 Simplify expressions feature colliding with some other features like hex values
- Exception on FFDec start when simple editor is on
## [22.0.2] - 2025-01-17
### Added

View File

@@ -113,7 +113,11 @@ public class QuickTreeFilterPanel extends JPanel implements QuickTreeFilterInter
foldersPanel.setSize(new Dimension(getParent().getWidth(), 47));
labelToFolder.clear();
foldersList = ((TagTreeModel) tagTree.getFullModel()).getAvailableFolders();
TagTreeModel model = (TagTreeModel) tagTree.getFullModel();
if (model == null) { // When switched to Simple editor for example
return;
}
foldersList = model.getAvailableFolders();
for (String f : foldersList) {
String icon = "folder" + f.toLowerCase(Locale.ENGLISH) + "16";
if (f.equals("header")) {