Fixed NPE with getUploadParamsForTemplate API call

if isdynamicallyscalable optional parameter is not specified, its trying
to cast null to Boolean and throws NPE
This commit is contained in:
Rajani Karuturi 2015-03-17 09:45:01 +05:30
parent 3de5d9db5f
commit 7d1ca8a55c
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,9 @@ public class GetUploadParamsForTemplateCmd extends AbstractGetUploadParamsCmd {
}
public Boolean isDynamicallyScalable() {
if (isDynamicallyScalable == null) {
return Boolean.FALSE;
}
return isDynamicallyScalable;
}