You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
English: Guys,
A problem arose. The launch of exception that breaking the code on the request is not originated because of a null list. The problem is that there are quotas that do not have a valid value of Month.
In class StatisticDao there is a call to the method Statistic#getMonth(). It at some point is returning null.
The momentary solution is to use a default value of WITHOUT_MONTH to constant existing only in these cases.
However, we must improve it, because that way we lose data and, in consequence, the consistency of analysis.
Portuguese: Caras,
Surgiu um problema. O lançamento da exceção que quebra na requisição não é originado por causa de uma lista nula. O problema é que há cotas que não tem um valor válido de Month.
Na classe StatisticDao há uma chamada para o método Statistic#getMonth(). Ele, em algum momento está retornando null.
A solução momentânea é utilizar um valor default de WITHOUT_MONTH, para constante já existente, apenas para esses casos.
No entanto, devemos melhorar isso, pois dessa forma perdemos dados e, por consequência, a consistência das análises.
That's weird... I've created a handler for that in JSONHelper method that sets the months as 0 (zero) when it doesn't exists... I will investigate this issue.
English: but thank you to solve the question about the Month with value null! Portuguese: mas obrigado por ter resolvido a questão do Monthcom valor null!
@ArthurJahn,
There are unit tests was broken: testInsertAllValidCongressman() and testGetQuotaOfValidCongressman(). The last time I ran then it was OK. Do you run the tests in your machine?
Activity
TomazMartins commentedon Jun 10, 2015
English: Guys,
A problem arose. The launch of exception that breaking the code on the request is not originated because of a null list. The problem is that there are quotas that do not have a valid value of Month.
In class
StatisticDaothere is a call to the methodStatistic#getMonth(). It at some point is returningnull.The momentary solution is to use a default value of
WITHOUT_MONTHto constant existing only in these cases.However, we must improve it, because that way we lose data and, in consequence, the consistency of analysis.
Portuguese: Caras,
Surgiu um problema. O lançamento da exceção que quebra na requisição não é originado por causa de uma lista nula. O problema é que há cotas que não tem um valor válido de
Month.Na classe
StatisticDaohá uma chamada para o métodoStatistic#getMonth(). Ele, em algum momento está retornandonull.A solução momentânea é utilizar um valor default de
WITHOUT_MONTH, para constante já existente, apenas para esses casos.No entanto, devemos melhorar isso, pois dessa forma perdemos dados e, por consequência, a consistência das análises.
ArthurJahn commentedon Jun 11, 2015
That's weird... I've created a handler for that in JSONHelper method that sets the months as 0 (zero) when it doesn't exists... I will investigate this issue.
ArthurJahn commentedon Jun 11, 2015
Sorry that unassigned you, but i was already working on this issue because of the graphs. Anyway, It's closed now, commit 7172c44
TomazMartins commentedon Jun 11, 2015
English: I opened the issue again because it specifies what must be done all the treatments exceptions around the Akan. This was not done yet.
Portuguese: Eu reabri a issue, pois ela especifica que deve ser feito todos os tratamentos de exceções no Akan inteiro. Isso não foi feito ainda.
ArthurJahn commentedon Jun 11, 2015
Ok!
TomazMartins commentedon Jun 11, 2015
English: but thank you to solve the question about the
Monthwith valuenull!Portuguese: mas obrigado por ter resolvido a questão do
Monthcom valornull!TomazMartins commentedon Jun 11, 2015
@ArthurJahn,
There are unit tests was broken:
testInsertAllValidCongressman()andtestGetQuotaOfValidCongressman(). The last time I ran then it was OK. Do you run the tests in your machine?