Roberto Sánchez
2014-01-13 edd47c68c6a08bd756d96213c38e896a0a257bd1
securis/src/main/java/net/curisit/securis/services/LicenseTypeResource.java
....@@ -111,6 +111,9 @@
111111 log.error("LicenseType application with id {} not found in DB", lt.getApplicationId());
112112 return Response.status(Status.NOT_FOUND).header(SecurisErrorHandler.HEADER_ERROR_MESSAGE, "License type's app not found with ID: " + lt.getApplicationId()).build();
113113 }
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();
114117 }
115118
116119 lt.setApplication(app);