tac team mailing list archive
-
tac team
-
Mailing list archive
-
Message #00059
[Bug 588480] Re: BalanceService throws NullPointerException
** Changed in: tacenergy
Status: Confirmed => Fix Committed
--
BalanceService throws NullPointerException
https://bugs.launchpad.net/bugs/588480
You received this bug notification because you are a member of TAC,
which is subscribed to TAC Energy.
Status in TAC Enery - Trading Agent Competition for the Energy Market: Fix Committed
Bug description:
Problem:
If a product is closed that is traded before, the BalanceService throws a NullPointerException when calculating the balancingCosts in line 69:
balancingCosts = -deltaValue * (maxProductPrice.getPrice() + product.competition.balancingCostUnder)
Implications:
BalanceService is called in the CompetitionService. Due to the transactional = true property, the actions of the CompetitionService are rolled back and TimeAdvancement fails.
Todo:
Identify Null Object and assert NotNull
References