Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RocketChatMobileEngine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
hosting
chat
RocketChatMobileEngine
Commits
f0773941
Commit
f0773941
authored
6 years ago
by
Dennis Beier
Browse files
Options
Downloads
Patches
Plain Diff
check for null added
parent
9ed1b125
No related branches found
No related tags found
1 merge request
!97
Fix upload
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
android/androidfiledialog.cpp
+7
-4
7 additions, 4 deletions
android/androidfiledialog.cpp
with
7 additions
and
4 deletions
android/androidfiledialog.cpp
+
7
−
4
View file @
f0773941
...
...
@@ -72,11 +72,14 @@ QString AndroidFileDialog::ResultReceiver::uriToPath( QAndroidJniObject uri )
QString
cacheFile
=
cacheDir
.
filePath
(
displayName
);
qDebug
()
<<
"cachefile: "
<<
cacheFile
;
QFile
file
(
cacheFile
);
if
(
file
.
open
(
QIODevice
::
WriteOnly
)){
file
.
write
((
const
char
*
)
realdata
,
iconSize
);
if
(
realdata
!=
nullptr
){
if
(
file
.
open
(
QIODevice
::
WriteOnly
)){
file
.
write
((
const
char
*
)
realdata
,
iconSize
);
}
qDebug
()
<<
"wrote file "
<<
cacheFile
;
return
cacheFile
;
}
qDebug
()
<<
"wrote file "
<<
cacheFile
;
return
cacheFile
;
return
QString
(
"null"
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment