Build fail for ExtrapolatedAnnualizedReturn testcase

Task :qmoney:test

com.crio.warmup.stock.portfolio.PortfolioManagerTest > calculateExtrapolatedAnnualizedReturn() FAILED
java.lang.NullPointerException at PortfolioManagerTest.java:107

TEST RESULT: FAILURE
TEST SUMMARY: RAN 14 TESTS, 13 SUCCEEDED, 1 FAILED, 0 SKIPPED

14 tests completed, 1 failed

Task :qmoney:test FAILED

FAILURE: Build failed with an exception.

I have referred the potential FAQ setup for this particular error: Extrapolated Annualized Return test case fails and I also checked all the posts with regard to the same and couldnt find out. @amanagar @Sakshat-Crio.Do @Rahul-Crio.do @sashi_Crio.Do

Hi @NishanthR, have you tried debugging by placing a breakpoint in the line causing the error?

Seems like your calculateAnnualizedReturn() method is returning null

I’ve fixed it. There was another function overriding the same returning a null. So, had to remove that. Thanks tho!

Sure, glad to know :slight_smile: