Skip to content

Commit

Permalink
Fix RecordServices NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaolewei committed Aug 11, 2019
1 parent 8b7f1c7 commit e488545
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/local.properties
/.idea/workspace.xml
/.idea/libraries
/.idea/
.DS_Store
/build
/captures
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ public IBinder onBind(Intent intent) {

@Override
public int onStartCommand(Intent intent, int flags, int startId) {
if (intent == null) {
return super.onStartCommand(intent, flags, startId);
}
Bundle bundle = intent.getExtras();
if (bundle != null && bundle.containsKey(ACTION_NAME)) {
switch (bundle.getInt(ACTION_NAME, ACTION_INVALID)) {
Expand Down

0 comments on commit e488545

Please sign in to comment.