fix NPE
This commit is contained in:
parent
4082f52dd9
commit
8c2ad32ad8
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@ public class SourceDexcomG5Plugin extends PluginBase implements BgSourceInterfac
|
||||||
if (L.isEnabled(L.BGSOURCE))
|
if (L.isEnabled(L.BGSOURCE))
|
||||||
log.debug("Received Dexcom Data", data);
|
log.debug("Received Dexcom Data", data);
|
||||||
|
|
||||||
|
if (data == null) return;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
JSONArray jsonArray = new JSONArray(data);
|
JSONArray jsonArray = new JSONArray(data);
|
||||||
if (L.isEnabled(L.BGSOURCE))
|
if (L.isEnabled(L.BGSOURCE))
|
||||||
|
|
Loading…
Reference in a new issue