Describe the bug
App crash after adding App to blacklist via notification and then restarting app afterwards
To Reproduce
Steps to reproduce the behavior:
Install Uniatron App
Install another App
Tap the notification which asks to "add app to blacklist"
Open Uniatron App
Search through the App Blacklist. The recently installed App is not listed here.
Kill Uniatron through task manager to check if problem has to do with caching of blacklist
App crashes
FATAL EXCEPTION: main
Process: com.edu.uni.augsburg.uniatron, PID: 22725
java.lang.RuntimeException: Unable to start service com.edu.uni.augsburg.uniatron.service.AddBlacklistEntryService@f9ebce2 with null: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3694)
at android.app.ActivityThread.-wrap21(Unknown Source:0)
-----------
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference
at com.edu.uni.augsburg.uniatron.service.AddBlacklistEntryService.onStartCommand(AddBlacklistEntryService.java:24)
**Smartphone (please complete the following information):**
- Device: S8
#17 #29
Describe the bug App crash after adding App to blacklist via notification and then restarting app afterwards
To Reproduce Steps to reproduce the behavior:
FATAL EXCEPTION: main Process: com.edu.uni.augsburg.uniatron, PID: 22725 java.lang.RuntimeException: Unable to start service com.edu.uni.augsburg.uniatron.service.AddBlacklistEntryService@f9ebce2 with null: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.content.Intent.getStringExtra(java.lang.String)' on a null object reference at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3694) at android.app.ActivityThread.-wrap21(Unknown Source:0)