Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e
os
eDrive
Commits
379f84ff
Commit
379f84ff
authored
Feb 09, 2021
by
narinder Rana
Browse files
Merge branch 'issue_2401' into 'v1-oreo'
handle null pointer exception See merge request e/apps/eDrive!42
parents
bfa72c8b
53a9b73b
Pipeline
#100993
passed with stage
in 6 minutes and 41 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
app/src/main/java/foundation/e/drive/services/OperationManagerService.java
View file @
379f84ff
...
...
@@ -239,8 +239,15 @@ public class OperationManagerService extends Service implements OnRemoteOperatio
public
int
onStartCommand
(
Intent
intent
,
int
flags
,
int
startId
)
{
Log
.
i
(
TAG
,
"onStartCommand()"
);
try
{
CommonUtils
.
setServiceUnCaughtExceptionHandler
(
this
);
if
(
null
==
intent
||
null
==
intent
.
getAction
())
{
String
source
=
null
==
intent
?
"intent"
:
"action"
;
Log
.
e
(
TAG
,
source
+
" was null, flags="
+
flags
+
" bits="
+
Integer
.
toBinaryString
(
flags
));
//return START_STICKY;
}
Bundle
extras
=
intent
.
getExtras
();
Log
.
d
(
TAG
,
"OperationManagerService recieved "
+(
extras
==
null
?
"null extras"
:
extras
.
size
()+
" operations to perform"
)
);
...
...
@@ -293,6 +300,10 @@ public class OperationManagerService extends Service implements OnRemoteOperatio
}
else
{
Log
.
w
(
TAG
,
"Intent's extras is null."
);
}
}
catch
(
Exception
ex
){
Log
.
e
(
"Exception"
,
ex
.
getMessage
());
ex
.
printStackTrace
();
}
return
super
.
onStartCommand
(
intent
,
flags
,
startId
);
}
...
...
Write
Preview
Supports
Markdown
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