nehaarya2003 / moloko

Automatically exported from code.google.com/p/moloko
GNU General Public License v3.0
0 stars 0 forks source link

Queries.fillStringArray returns null on empty cursor #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
 if ( res.length > 0 && c.getCount() <= res.length )
 {
    boolean ok = c.moveToFirst();

    if ( !ok )
      res = null;
 }

Add missing check for c.getCount() > 0

Original issue reported on code.google.com by ronny.roehricht on 27 Oct 2011 at 11:09

GoogleCodeExporter commented 8 years ago

Original comment by ronny.roehricht on 30 Oct 2011 at 8:17

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r509.

Original comment by ronny.roehricht on 30 Oct 2011 at 8:59