Author: yradtsevich
Date: 2010-07-31 01:05:37 -0400 (Sat, 31 Jul 2010)
New Revision: 23854
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/src/org/jboss/tools/vpe/spring/template/SpringFormSelectTemplate.java
Log:
https://jira.jboss.org/browse/JBIDE-6711
https://jira.jboss.org/browse/JBIDE-6542
- fix for NPE in Eclipse 3.5.x
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe.spring/src/org/jboss/tools/vpe/spring/template/SpringFormSelectTemplate.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe.spring/src/org/jboss/tools/vpe/spring/template/SpringFormSelectTemplate.java 2010-07-30
21:58:03 UTC (rev 23853)
+++
trunk/vpe/plugins/org.jboss.tools.vpe.spring/src/org/jboss/tools/vpe/spring/template/SpringFormSelectTemplate.java 2010-07-31
05:05:37 UTC (rev 23854)
@@ -43,7 +43,7 @@
VpeSpringUtil.copyAttribute(sourceElement, HTML.ATTR_MULTIPLE,
select, HTML.ATTR_MULTIPLE);
- if (sourceElement.getAttribute(Spring.ATTR_DISABLED).equals(Spring.VALUE_TRUE)) {
+ if (Spring.VALUE_TRUE.equals(sourceElement.getAttribute(Spring.ATTR_DISABLED))) {
select.setAttribute(HTML.ATTR_DISABLED, HTML.ATTR_DISABLED);
}