Permalink
Browse files

Merge pull request #9 from kgilmer/master

Simple fix for issue #6. Thanks to Ken Gilmer.
  • Loading branch information...
2 parents d948392 + 204d2fb commit d8a59b74d3e336227ae261375af66efbe17e3265 @winterstein committed Nov 26, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 plugin/src/winterwell/markdown/views/MarkdownPreview.java
@@ -75,7 +75,9 @@ public void update() {
} catch (Exception ex) {
// Smother
System.out.println(ex);
- viewer.setText(ex.getMessage());
+
+ if (viewer != null && !viewer.isDisposed())
+ viewer.setText(ex.getMessage());
}
}

0 comments on commit d8a59b7

Please sign in to comment.