diff --git a/sdk/locks/mgmt-v2016_09_01/pom.xml b/sdk/locks/mgmt-v2016_09_01/pom.xml
index 2637e85580679..fda6e54aa3442 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.2.0
+ 1.1.0
../../../pom.management.xml
azure-mgmt-locks
- 1.0.0-beta-2
+ 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 4ca0f80c12c30..c4e51236b7b79 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));
+ }
}
});
}