| .. | .. |
|---|
| 111 | 111 | log.error("LicenseType application with id {} not found in DB", lt.getApplicationId()); |
|---|
| 112 | 112 | return Response.status(Status.NOT_FOUND).header(SecurisErrorHandler.HEADER_ERROR_MESSAGE, "License type's app not found with ID: " + lt.getApplicationId()).build(); |
|---|
| 113 | 113 | } |
|---|
| 114 | + } else { |
|---|
| 115 | + log.error("Application is missing for current license type data"); |
|---|
| 116 | + return Response.status(Status.NOT_FOUND).header(SecurisErrorHandler.HEADER_ERROR_MESSAGE, "Application is missing for current license type data").build(); |
|---|
| 114 | 117 | } |
|---|
| 115 | 118 | |
|---|
| 116 | 119 | lt.setApplication(app); |
|---|