File tree Expand file tree Collapse file tree
server/src/com/cloud/configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2618,6 +2618,9 @@ public Vlan createVlanAndPublicIpRange(final CreateVlanIpRangeCmd cmd) throws In
26182618 }
26192619
26202620 vlanOwner = _accountMgr .getAccount (project .getProjectAccountId ());
2621+ if (vlanOwner == null ) {
2622+ throw new InvalidParameterValueException ("Please specify a valid projectId" );
2623+ }
26212624 }
26222625
26232626 Domain domain = null ;
@@ -3329,6 +3332,9 @@ public Vlan dedicatePublicIpRange(final DedicatePublicIpRangeCmd cmd) throws Res
33293332 throw new InvalidParameterValueException ("Unable to find project by id " + projectId );
33303333 }
33313334 vlanOwner = _accountMgr .getAccount (project .getProjectAccountId ());
3335+ if (vlanOwner == null ) {
3336+ throw new InvalidParameterValueException ("Please specify a valid projectId" );
3337+ }
33323338 }
33333339
33343340 Domain domain = null ;
You can’t perform that action at this time.
0 commit comments