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:
parent
95f866ac98
commit
27a2c030d6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user