Author: yzhishko
Date: 2009-11-13 16:04:54 -0500 (Fri, 13 Nov 2009)
New Revision: 18685
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleAttribute.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5193 fixed
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleAttribute.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleAttribute.java 2009-11-13
19:35:27 UTC (rev 18684)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/toolbar/format/css/StyleAttribute.java 2009-11-13
21:04:54 UTC (rev 18685)
@@ -215,7 +215,7 @@
for(int i=0; i<tokens.size(); i++) {
if(tokens.get(i) instanceof StyleProperty) {
StyleProperty property = (StyleProperty)tokens.get(i);
- if(name.equalsIgnoreCase(property.getName().getCleanValue())) {
+ if (property.getName()!=null &&
name.equalsIgnoreCase(property.getName().getCleanValue())) {
return property;
}
}