Author: max.andersen(a)jboss.com
Date: 2007-07-24 13:20:36 -0400 (Tue, 24 Jul 2007)
New Revision: 2635
Modified:
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/xpl/ToggleOccurencesMarkUpAction.java
Log:
NPE was occurring at line constantly. now chekked just to not make it ignore it.
Modified:
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/xpl/ToggleOccurencesMarkUpAction.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/xpl/ToggleOccurencesMarkUpAction.java 2007-07-24
16:19:59 UTC (rev 2634)
+++
trunk/common/plugins/org.jboss.tools.common.text.xml/src/org/jboss/tools/common/text/xml/xpl/ToggleOccurencesMarkUpAction.java 2007-07-24
17:20:36 UTC (rev 2635)
@@ -154,7 +154,9 @@
try {
// determine if action should be enabled or not
- markOccurences = fPreferenceStore.getBoolean(fKey);
+ if(fPreferenceStore!=null) {
+ markOccurences = fPreferenceStore.getBoolean(fKey);
+ }
enabled = (getTextEditor() != null);
} catch (Exception x) {
}
Show replies by date