Skip to content

Commit

Permalink
Protect against invalid sketch or file in tree update
Browse files Browse the repository at this point in the history
  • Loading branch information
majenkotech committed Mar 29, 2020
1 parent e640ba5 commit 4c90db3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions resources/org/uecide/changelog.md
Expand Up @@ -4,6 +4,7 @@ Changelog
0.11.2
------

* Add logging output support


0.11.1
Expand Down Expand Up @@ -732,6 +733,7 @@ Changelog
0.8.5
-----

* Add logging output support
* Merge branch 'master' of github.com:UECIDE/UECIDE
* Add facility to query RTS and DTR
* Fixed missing line feed after inner files
Expand Down
4 changes: 2 additions & 2 deletions resources/org/uecide/version.txt
@@ -1,3 +1,3 @@
Version=0.11.2
VersionName=0.11.2
Version=0.11.3
VersionName=0.11.3
Release=release
4 changes: 4 additions & 0 deletions src/org/uecide/Editor.java
Expand Up @@ -1375,6 +1375,10 @@ public void sort2(DefaultMutableTreeNode parent) {
}

public void updateDocsTree() {

if (loadedSketch == null) return;
if (!loadedSketch.getFolder().exists()) return;
if (!loadedSketch.getFolder().isDirectory()) return;
SwingUtilities.invokeLater(new Runnable() {
public void run() {
TreePath[] saved = saveTreeState(sketchContentTree);
Expand Down

0 comments on commit 4c90db3

Please sign in to comment.