fix NPE
This commit is contained in:
parent
4164585804
commit
26a24d384e
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public class SourceNSClientPlugin extends PluginBase implements BgSourceInterfac
|
|||
NSSgv nsSgv = new NSSgv(sgvJson);
|
||||
BgReading bgReading = new BgReading(nsSgv);
|
||||
MainApp.getDbHelper().createIfNotExists(bgReading, "NS");
|
||||
SourceNSClientPlugin.getPlugin().detectSource(JsonHelper.safeGetString(sgvJson, "device"), JsonHelper.safeGetLong(sgvJson, "mills"));
|
||||
SourceNSClientPlugin.getPlugin().detectSource(JsonHelper.safeGetString(sgvJson, "device", "none"), JsonHelper.safeGetLong(sgvJson, "mills"));
|
||||
}
|
||||
|
||||
public void detectSource(String source, long timeStamp) {
|
||||
|
|
Loading…
Reference in a new issue