mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-23 02:17:20 +00:00
Replaced getString(..) != null with isNull(..)
This commit is contained in:
parent
95f866ac98
commit
27a2c030d6
@ -146,11 +146,10 @@ public class FilesHelper {
|
|||||||
|
|
||||||
String filename = cursor.getString(nameColumnIndex);
|
String filename = cursor.getString(nameColumnIndex);
|
||||||
|
|
||||||
// It is recommended to check this value before getting the int value, because
|
// It is recommended to check for the value to be null because there are
|
||||||
// there are situations were we don't know the size (for instance, if the file is
|
// situations were we don't know the size (for instance, if the file is
|
||||||
// not local to the device)
|
// not local to the device)
|
||||||
boolean sizeExists = cursor.getString(sizeColumnIndex) != null;
|
if (!cursor.isNull(sizeColumnIndex)) {
|
||||||
if (sizeExists) {
|
|
||||||
size = cursor.getInt(sizeColumnIndex);
|
size = cursor.getInt(sizeColumnIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user