Author: dmaliarevich
Date: 2009-10-29 08:49:22 -0400 (Thu, 29 Oct 2009)
New Revision: 18346
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5107, check if the visual editor could be null
was added.
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2009-10-29
01:10:48 UTC (rev 18345)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2009-10-29
12:49:22 UTC (rev 18346)
@@ -1167,7 +1167,9 @@
/*
* Update MozillaEditor's toolbar items
*/
- visualEditor.updateToolbarItemsAccordingToPreferences();
+ if (visualEditor != null) {
+ visualEditor.updateToolbarItemsAccordingToPreferences();
+ }
/*
* When switching from Source view to Visual/Source controller could be null.
*/