mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Fixing undefined exception when device properties not available
This commit is contained in:
parent
ccf4b6492c
commit
f2af4bd078
@ -27,7 +27,7 @@ function onRequest(context) {
|
|||||||
|
|
||||||
if (device) {
|
if (device) {
|
||||||
var viewModel = {};
|
var viewModel = {};
|
||||||
var deviceInfo = device.properties.DEVICE_INFO;
|
var deviceInfo = (device.properties) ? device.properties.DEVICE_INFO : null;
|
||||||
if (deviceInfo != undefined && String(deviceInfo.toString()).length > 0) {
|
if (deviceInfo != undefined && String(deviceInfo.toString()).length > 0) {
|
||||||
deviceInfo = parse(stringify(deviceInfo));
|
deviceInfo = parse(stringify(deviceInfo));
|
||||||
if (device.type == "ios") {
|
if (device.type == "ios") {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user