Author: twalsh(a)redhat.com
Date: 2009-04-22 04:12:47 -0400 (Wed, 22 Apr 2009)
New Revision: 822
Modified:
trunk/connectors/connector-salesforce/src/main/java/com/metamatrix/connector/salesforce/Connector.java
Log:
https://jira.jboss.org/jira/browse/TEIID-96
Modified:
trunk/connectors/connector-salesforce/src/main/java/com/metamatrix/connector/salesforce/Connector.java
===================================================================
---
trunk/connectors/connector-salesforce/src/main/java/com/metamatrix/connector/salesforce/Connector.java 2009-04-22
08:10:24 UTC (rev 821)
+++
trunk/connectors/connector-salesforce/src/main/java/com/metamatrix/connector/salesforce/Connector.java 2009-04-22
08:12:47 UTC (rev 822)
@@ -121,7 +121,7 @@
}
try {
String inLimitString = env.getProperties().getProperty("InLimit",
Integer.toString(-1));
- int inLimit = Integer.decode(inLimitString).intValue();
+ int inLimit = inLimitString == null ? -1 : Integer.decode(inLimitString).intValue();
salesforceCapabilites.setMaxInCriteriaSize(inLimit);
} catch (NumberFormatException e) {
throw new
ConnectorException(Messages.getString("SalesforceConnection.bad.IN.value"));