Merge pull request #1 from nasa/open1221

[Platform] Tweak misc. items to support clocks/timers
This commit is contained in:
Pete Richards
2015-06-09 10:23:06 -07:00
10 changed files with 135 additions and 11 deletions

View File

@@ -45,8 +45,9 @@ define(
properties = type.getProperties();
function validateLocation(locatingObject) {
var locatingType = locatingObject.getCapability('type');
return policyService.allow(
var locatingType = locatingObject &&
locatingObject.getCapability('type');
return locatingType && policyService.allow(
"composition",
locatingType,
type