diff --git a/IoTCIntegration/lib/engine.js b/IoTCIntegration/lib/engine.js index 19d91eb..b34cc8e 100644 --- a/IoTCIntegration/lib/engine.js +++ b/IoTCIntegration/lib/engine.js @@ -87,7 +87,7 @@ function validateMeasurements(measurements) { * @returns true if a measurement is a location. */ function isLocation(measurement) { - if (typeof measurement !== 'object' || typeof measurement.lat !== 'number' || typeof measurement.lon !== 'number') { + if (!measurement || typeof measurement !== 'object' || typeof measurement.lat !== 'number' || typeof measurement.lon !== 'number') { return false; } diff --git a/README.md b/README.md index e0e45f8..56732fe 100644 --- a/README.md +++ b/README.md @@ -250,7 +250,7 @@ Function. You can check the integrity of the code being deployed by verifying th of the `iotc-bridge-az-function.zip` file in the root of this repository matches the following: ``` -9686CE97CD8A7C5DF71CEC11BFC1817DBC96A5D0D52C6F9068CDFA1872204DC6 +EAEF80420054196F05F7D36E436BA168AF5DCD7A6E31753C8A86F71607C39312 ``` # Contributing diff --git a/iotc-bridge-az-function.zip b/iotc-bridge-az-function.zip index e834107..1e013c0 100644 Binary files a/iotc-bridge-az-function.zip and b/iotc-bridge-az-function.zip differ