Commit bd76cf20 authored by Spiros Koulouzis's avatar Spiros Koulouzis

Throw exception if credentials are null

parent 18012161
......@@ -101,7 +101,9 @@ public class ProvisionController {
Message invokationMessage = new Message();
List<Parameter> parameters = new ArrayList();
CloudCredentials cred = cloudCredentialsDao.findOne(pReq.getCloudConfID());
if (cred == null) {
throw new NotFoundException("Cloud credentials :" + pReq.getCloudConfID() + " not found");
}
Parameter conf = buildCloudConfParam(cred);
parameters.add(conf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment