BalanceService throws NullPointerException

Bug #588480 reported by Daniel Schnurr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TAC Energy
Fix Released
Critical
Carsten Block

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

Changed in tacenergy:
status: Confirmed → Fix Committed
Carsten Block (cblock)
Changed in tacenergy:
milestone: none → v0.7
Carsten Block (cblock)
Changed in tacenergy:
status: Fix Committed → Fix Released
assignee: nobody → Carsten Block (cblock)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.