Github user ramith commented on a diff in the pull request:
https://github.com/apache/stratos/pull/145#discussion_r22094207
--- Diff:
components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/api/StratosApiV41Utils.java
---
@@ -108,6 +108,9 @@ public static void
createCartridgeDefinition(CartridgeDefinitionBean cartridgeDe
if (cartridgeConfig == null) {
throw new RestAPIException("Populated CartridgeConfig instance
is null, cartridge deployment aborted");
}
+ if (cartridgeConfig.getCategory().equals("")||
cartridgeConfig.getCategory().isEmpty()) {
--- End diff --
StringUtils.isBlank() might be useful here.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---