[jboss-cvs] jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views ...
Max Rydahl Andersen
mandersen at jboss.com
Thu Sep 14 12:42:47 EDT 2006
User: mandersen
Date: 06/09/14 12:42:47
Modified: hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views
KnownConfigurationsView.java
Log:
HBX-590 Error when double clicking in console configuration view
done by ensuring query exution does not occur on an empty string
Revision Changes Path
1.17 +5 -1 jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: KnownConfigurationsView.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- KnownConfigurationsView.java 7 Jul 2006 13:51:09 -0000 1.16
+++ KnownConfigurationsView.java 14 Sep 2006 16:42:46 -0000 1.17
@@ -47,6 +47,7 @@
import org.hibernate.console.node.BaseNode;
import org.hibernate.eclipse.console.actions.EditConsoleConfiguration;
import org.hibernate.eclipse.console.workbench.xpl.AnyAdaptableLabelProvider;
+import org.hibernate.util.StringHelper;
/**
@@ -146,7 +147,10 @@
BaseNode node = (BaseNode) firstElement;
ConsoleConfiguration consoleConfiguration = node.getConsoleConfiguration();
if(consoleConfiguration.isSessionFactoryCreated() ) {
- consoleConfiguration.executeHQLQuery(node.getHQL() );
+ String hql = node.getHQL();
+ if(StringHelper.isNotEmpty( hql )) {
+ consoleConfiguration.executeHQLQuery( hql );
+ }
}
}
}
More information about the jboss-cvs-commits
mailing list