anygeorge / java-google-safe-browsing

Automatically exported from code.google.com/p/java-google-safe-browsing
0 stars 0 forks source link

Empty Result Set Probably Caused by 2 rs.next() in a Loop #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. When repeatedly checking 20 different URLs each for 100 times  
2. Run inside Eclipse as an application on Window 7

What is the expected output? What do you see instead?
* _empty result set_ Exception @ GSBAnalyzer.java:142 is caused by two 
rs.next() in the same loop*
  # *`while(rs.next()){`* on line 140 has a *for loop* on line 141
  # *`while(rs.next()){`* on line 163 in the *for loop* can exhaust the result set but still inside the loop
  # the loop repeat at line 142 and meet the empty result set.
  # Fixing can be to add *` if(!rs.isBeforeFirst()){break;}`* above line 142 to exit the for loop.

Original issue reported on code.google.com by Nixi...@gmail.com on 11 Apr 2013 at 11:57