diff --git a/sdk/locks/mgmt-v2016_09_01/pom.xml b/sdk/locks/mgmt-v2016_09_01/pom.xml
index 6ab29623e1f9..fda6e54aa344 100644
--- a/sdk/locks/mgmt-v2016_09_01/pom.xml
+++ b/sdk/locks/mgmt-v2016_09_01/pom.xml
@@ -11,11 +11,11 @@
com.microsoft.azure
azure-arm-parent
- 1.3.0
- ../../parents/azure-arm-parent
+ 1.1.0
+ ../../../pom.management.xml
azure-mgmt-locks
- 1.0.0-beta-3
+ 1.0.0-beta
jar
Microsoft Azure SDK for Authorization Management
This package contains Microsoft Authorization Management SDK.
@@ -71,6 +71,8 @@
azure-arm-client-runtime
test-jar
test
+
+ 1.6.5
diff --git a/sdk/locks/mgmt-v2016_09_01/src/main/java/com/microsoft/azure/management/locks/v2016_09_01/implementation/ManagementLocksImpl.java b/sdk/locks/mgmt-v2016_09_01/src/main/java/com/microsoft/azure/management/locks/v2016_09_01/implementation/ManagementLocksImpl.java
index 4ca0f80c12c3..c4e51236b7b7 100644
--- a/sdk/locks/mgmt-v2016_09_01/src/main/java/com/microsoft/azure/management/locks/v2016_09_01/implementation/ManagementLocksImpl.java
+++ b/sdk/locks/mgmt-v2016_09_01/src/main/java/com/microsoft/azure/management/locks/v2016_09_01/implementation/ManagementLocksImpl.java
@@ -244,10 +244,14 @@ public ManagementLockObject getByResourceGroup(String resourceGroupName, String
@Override
public Observable getByResourceGroupAsync(String resourceGroupName, String name) {
- return this.getInnerAsync(resourceGroupName, name).map(new Func1 () {
+ return this.getInnerAsync(resourceGroupName, name).flatMap(new Func1> () {
@Override
- public ManagementLockObject call(ManagementLockObjectInner innerT) {
- return wrapModel(innerT);
+ public Observable call(ManagementLockObjectInner innerT) {
+ if (inner == null) {
+ return Observable.empty();
+ } else {
+ return Observable.just((ManagementLockObject)wrapModel(innerT));
+ }
}
});
}