mirror of https://github.com/apache/cloudstack.git
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:
parent
3de5d9db5f
commit
7d1ca8a55c
|
|
@ -109,6 +109,9 @@ public class GetUploadParamsForTemplateCmd extends AbstractGetUploadParamsCmd {
|
|||
}
|
||||
|
||||
public Boolean isDynamicallyScalable() {
|
||||
if (isDynamicallyScalable == null) {
|
||||
return Boolean.FALSE;
|
||||
}
|
||||
return isDynamicallyScalable;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue