treehouses / remote

⚡ control Raspberry Pi from Android Device through Bluetooth ⚡
https://play.google.com/store/apps/details?id=io.treehouses.remote
GNU Affero General Public License v3.0
61 stars 27 forks source link

NullPointerException #1860

Closed dogi closed 5 months ago

dogi commented 5 months ago
Exception java.lang.RuntimeException: Unable to instantiate service io.treehouses.remote.network.BluetoothChatService: java.lang.NullPointerException: getDefaultAdapter() must not be null
  at android.app.ActivityThread.handleCreateService (ActivityThread.java:3519)
  at android.app.ActivityThread.access$1300 (ActivityThread.java:199)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1666)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loop (Looper.java:193)
  at android.app.ActivityThread.main (ActivityThread.java:6669)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
Caused by java.lang.NullPointerException: getDefaultAdapter() must not be null
  at io.treehouses.remote.bases.BaseBluetoothChatService.<init> (BaseBluetoothChatService.kt:39)
  at io.treehouses.remote.network.BluetoothChatService.<init> (BluetoothChatService.kt:46)
  at io.treehouses.remote.network.BluetoothChatService.<init> (BluetoothChatService.kt:46)
  at io.treehouses.remote.network.BluetoothChatService.<init>
  at java.lang.Class.newInstance
  at android.app.AppComponentFactory.instantiateService (AppComponentFactory.java:103)
  at androidx.core.app.CoreComponentFactory.instantiateService (CoreComponentFactory.java:75)
  at android.app.ActivityThread.handleCreateService (ActivityThread.java:3514)