Commit 9df632d3 by Nilu

fix NPE in job share page

parent 193523f5
......@@ -77,8 +77,8 @@
if(!billingTeam.isTrue(hiringTeam.getIsPPJ()))
{
Integer activeCount = billingTeam.getUsedCredits();
Integer totCount = billingTeam.getAvailableCredits();
Integer remCount = (totCount - activeCount) > 0 ? (totCount - activeCount) : 0;
Integer totCount = billingTeam.getAvailableCredits() != null ? billingTeam.getAvailableCredits() : 0;
Integer remCount = totCount - activeCount > 0 ? totCount - activeCount : 0;
%>
<div class="space-55">You have <%= remCount %> jobs remaining for this month.</div>
<%
......@@ -120,4 +120,4 @@
.job-share-icon li a.linked-col {line-height: 20px;}
</style>
</oneit:form>
</oneit:dynIncluded>
</oneit:dynIncluded>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment