Illegal operation on empty result set
I'm trying to build a pay desk in a grocery store and my code actually performs what I intend for it to do, but for one thing. After I ask the user to enter how many of an item they want, the product information is gathered and works fine, but when it's supposed to ask the user to enter product-ID for next product, the line is repeated and I get the following exception in my catch: "Illegal operation on empty result set". Again, all the calculations and everything is fine except for the repeating of that line. Any ideas on what might be the problem? The output that is repeat is like this: