Menu

#17 SQL query with empty result set should not throw exception

open
nobody
None
5
2013-02-22
2013-02-22
Anonymous
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.