Getting Nullpointer exception error when executing run command in module 1

07:05:40.140 [main] ERROR com.crio.warmup.stock.log.UncaughtExceptionHandler - {“stacktrace”:[“com.crio.warmup.stock.PortfolioManagerApplication.resolveFileFromResources(”,“com.crio.warmup.stock.PortfolioManagerApplication.mainReadFile(”,“com.crio.warmup.stock.PortfolioManagerApplication.main(”],“cause”:“java.lang.NullPointerException”}
java.lang.NullPointerException: null
at com.crio.warmup.stock.PortfolioManagerApplication.resolveFileFromResources( ~[main/:?]
at com.crio.warmup.stock.PortfolioManagerApplication.mainReadFile( ~[main/:?]
at com.crio.warmup.stock.PortfolioManagerApplication.main( ~[main/:?]

it was working fine at first and then when i submitted the code it showed unit testing error in mainReadFileEdgecase(). so i clicked go to workspace and then when i checked again it gave this error.

Hey @vignesh_b_s if you will see you are getting error in function resolveFileFromResources() at line number 68 try to debug that you will get it also you can see this FAQ for more reference.

in line 68 its the resolveFileFromResources function. should i change that?

Hey @vignesh_b_s obviously as resolveFileFromResources is predefined you don’t have to modify it you are using it in a wrong way in mainReadFile() function so try to find that out
where are you making mistake.