2
0
mirror of https://github.com/KDE/kdeconnect-android synced 2025-08-22 01:51:47 +00:00

Replaced getString(..) != null with isNull(..)

This commit is contained in:
Simon Redman 2019-04-04 11:39:18 -06:00
parent 95f866ac98
commit 27a2c030d6

View File

@ -146,11 +146,10 @@ public class FilesHelper {
String filename = cursor.getString(nameColumnIndex);
// It is recommended to check this value before getting the int value, because
// there are situations were we don't know the size (for instance, if the file is
// It is recommended to check for the value to be null because there are
// situations were we don't know the size (for instance, if the file is
// not local to the device)
boolean sizeExists = cursor.getString(sizeColumnIndex) != null;
if (sizeExists) {
if (!cursor.isNull(sizeColumnIndex)) {
size = cursor.getInt(sizeColumnIndex);
}