Skip to content

Commit

Permalink
Fixed createApplication to not require service list that wouldn't get…
Browse files Browse the repository at this point in the history
… added to application anyway
  • Loading branch information
Jennifer Hickey committed Jun 25, 2010
1 parent 45e970a commit e9aa0ed
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -140,9 +140,7 @@ class ApplicationController extends ApiController {
def newApp
try {
applicationValue.applicationType = appMan.findApplicationType(1)
newApp = appMan.createApplication(user, applicationValue, new ArrayList())
// Initialize appServices to avoid NPE
newApp.appServices = new ArrayList()
newApp = appMan.createApplication(user, applicationValue)
} catch (AppdefDuplicateNameException e) {
failureXml = getFailureXML(ErrorCode.OBJECT_EXISTS,
"Existing application with name " + appName +
Expand Down

0 comments on commit e9aa0ed

Please sign in to comment.