mirror of https://github.com/apache/cloudstack.git
quotatypes: fix NPE issue
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
b63778c4b2
commit
8f816e70f0
|
|
@ -94,6 +94,10 @@ public class QuotaTypes extends UsageTypes {
|
|||
}
|
||||
|
||||
static public String getDescription(int quotaType) {
|
||||
return quotaTypeMap.get(quotaType).getDescription();
|
||||
QuotaTypes t = quotaTypeMap.get(quotaType);
|
||||
if (t != null) {
|
||||
return t.getDescription();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue