Skip to content

Commit

Permalink
SAK-32534 - SAK-30153 NPE Fix (sakaiproject#4412)
Browse files Browse the repository at this point in the history
  • Loading branch information
master-bob authored and ern committed May 16, 2017
1 parent 48b3bdc commit 4a2ad25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,7 @@ private double getLiteralTotalPointsInternal(final Long gradebookId, Session ses
}
else if(gradebook.getCategory_type() == GradebookService.CATEGORY_TYPE_ONLY_CATEGORY)
{
if (pointsPossible!=null && !asn.getCategory().getIsExtraCredit())
if (pointsPossible!=null && asn.getCategory() != null && !asn.getCategory().getIsExtraCredit())
totalPointsPossible += pointsPossible.doubleValue();
for(int i=0; i<categories.size(); i++)
{
Expand Down

0 comments on commit 4a2ad25

Please sign in to comment.