fix NPE
This commit is contained in:
parent
5ab79f7f5a
commit
4a07e01b7d
|
@ -279,16 +279,9 @@ dependencies {
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||||
|
|
||||||
|
|
||||||
// xDrip-plus port
|
// new for tidepool
|
||||||
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
|
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
|
||||||
implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
|
implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0'
|
||||||
|
|
||||||
// you will want to install the android studio lombok plugin
|
|
||||||
//compileOnly 'org.projectlombok:lombok:1.16.20'
|
|
||||||
// compileOnly 'javax.annotation:javax.annotation-api:1.3.2'
|
|
||||||
//annotationProcessor "org.projectlombok:lombok:1.16.20"
|
|
||||||
|
|
||||||
// new for tidepool
|
|
||||||
implementation "com.squareup.retrofit2:retrofit:2.4.0"
|
implementation "com.squareup.retrofit2:retrofit:2.4.0"
|
||||||
implementation "com.squareup.retrofit2:adapter-rxjava2:2.3.0"
|
implementation "com.squareup.retrofit2:adapter-rxjava2:2.3.0"
|
||||||
implementation "com.squareup.retrofit2:converter-gson:2.4.0"
|
implementation "com.squareup.retrofit2:converter-gson:2.4.0"
|
||||||
|
|
|
@ -4,6 +4,7 @@ import com.google.gson.annotations.Expose
|
||||||
import info.nightscout.androidaps.BuildConfig
|
import info.nightscout.androidaps.BuildConfig
|
||||||
import info.nightscout.androidaps.interfaces.PluginBase
|
import info.nightscout.androidaps.interfaces.PluginBase
|
||||||
import info.nightscout.androidaps.plugins.configBuilder.ConfigBuilderPlugin
|
import info.nightscout.androidaps.plugins.configBuilder.ConfigBuilderPlugin
|
||||||
|
import info.nightscout.androidaps.plugins.source.SourceNSClientPlugin
|
||||||
import info.nightscout.androidaps.utils.DateUtil
|
import info.nightscout.androidaps.utils.DateUtil
|
||||||
import info.nightscout.androidaps.utils.T
|
import info.nightscout.androidaps.utils.T
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
@ -26,9 +27,9 @@ class OpenDatasetRequestMessage : BaseMessage() {
|
||||||
@Expose
|
@Expose
|
||||||
var dataSetType = UPLOAD_TYPE // omit for "normal"
|
var dataSetType = UPLOAD_TYPE // omit for "normal"
|
||||||
@Expose
|
@Expose
|
||||||
var deviceManufacturers = arrayOf((ConfigBuilderPlugin.getPlugin().activeBgSource as PluginBase).name)
|
var deviceManufacturers = arrayOf(((ConfigBuilderPlugin.getPlugin().activeBgSource ?: SourceNSClientPlugin.getPlugin()) as PluginBase).name)
|
||||||
@Expose
|
@Expose
|
||||||
var deviceModel = (ConfigBuilderPlugin.getPlugin().activeBgSource as PluginBase).name
|
var deviceModel = arrayOf(((ConfigBuilderPlugin.getPlugin().activeBgSource ?: SourceNSClientPlugin.getPlugin()) as PluginBase).name)
|
||||||
@Expose
|
@Expose
|
||||||
var deviceTags = arrayOf("bgm", "cgm", "insulin-pump")
|
var deviceTags = arrayOf("bgm", "cgm", "insulin-pump")
|
||||||
@Expose
|
@Expose
|
||||||
|
|
Loading…
Reference in a new issue