Github user rafaelweingartner commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/1289#discussion_r49316008
  
    --- Diff: 
framework/quota/src/org/apache/cloudstack/quota/vo/ServiceOfferingVO.java ---
    @@ -310,14 +269,12 @@ public String getDeploymentPlanner() {
         }
     
         public String getDetail(String name) {
    -        assert (details != null) : "Did you forget to load the details?";
    -
    -        return details != null ? details.get(name) : null;
    +        if (details == null) throw new IllegalStateException("Cannot set 
value as details is null");
    +        return details.get(name);
         }
     
         public void setDetail(String name, String value) {
    -        assert (details != null) : "Did you forget to load the details?";
    -
    +        if (details == null) throw new IllegalStateException("Cannot set 
value as details is null");
    --- End diff --
    
    We can check that, but if we will let it as it is. 
     I think it should have a test case written to check that behavior.



---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to