Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Network
KDE Connect Android
Commits
27a2c030
Commit
27a2c030
authored
Apr 04, 2019
by
Simon Redman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced getString(..) != null with isNull(..)
parent
95f866ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/org/kde/kdeconnect/Helpers/FilesHelper.java
src/org/kde/kdeconnect/Helpers/FilesHelper.java
+3
-4
No files found.
src/org/kde/kdeconnect/Helpers/FilesHelper.java
View file @
27a2c030
...
...
@@ -146,11 +146,10 @@ public class FilesHelper {
String
filename
=
cursor
.
getString
(
nameColumnIndex
);
// It is recommended to check
this value before getting the int value, becaus
e
//
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 ar
e
// 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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment