fix NPE
This commit is contained in:
parent
e15a2d6b88
commit
9f27b4ae42
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ public class NSDeviceStatus {
|
||||||
}
|
}
|
||||||
Uploader uploader = uploaders.get(device);
|
Uploader uploader = uploaders.get(device);
|
||||||
// check if this is new data
|
// check if this is new data
|
||||||
if (clock != 0 && (uploader != null && clock > uploader.clock || uploader == null)) {
|
if (clock != 0 && battery != null && (uploader != null && clock > uploader.clock || uploader == null)) {
|
||||||
if (uploader == null)
|
if (uploader == null)
|
||||||
uploader = new Uploader();
|
uploader = new Uploader();
|
||||||
uploader.battery = battery;
|
uploader.battery = battery;
|
||||||
|
|
Loading…
Reference in a new issue