SQL query with empty result set should not throw exception
Brought to you by:
danielaparker
In a SQL query returns zero result rows, I get an exception:
Flow is null at
com.servingxml.components.recordmapping.GenerateElement.groupStopped(GenerateElement.java:155)
I'd consider this situation as normal and would expect just an empty output but no exception.
This can be done by simply commenting out this code:
154 /* TGE
155 if (flow == null) {
156 throw new ServingXmlException("Flow is null");
157 }
158 */
I have been using the modified code for quite a while w/o any problems so far.