← Back to team overview

tac team mailing list archive

[Bug 588480] [NEW] BalanceService throws NullPointerException

 

Public bug reported:

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

** Affects: tacenergy
     Importance: Critical
         Status: Confirmed

-- 
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: Confirmed

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





Follow ups

References